Merge pull request #82814 from porridge/patch-1

Fix a couple of typos
This commit is contained in:
Kubernetes Prow Robot 2020-04-14 06:20:13 -07:00 committed by GitHub
commit 8a4bf39884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ import (
// Evaluator is used to see if quota constraints are satisfied. // Evaluator is used to see if quota constraints are satisfied.
type Evaluator interface { type Evaluator interface {
// Evaluate takes an operation and checks to see if quota constraints are satisfied. It returns an error if they are not. // Evaluate takes an operation and checks to see if quota constraints are satisfied. It returns an error if they are not.
// The default implementation process related operations in chunks when possible. // The default implementation processes related operations in chunks when possible.
Evaluate(a admission.Attributes) error Evaluate(a admission.Attributes) error
} }
@ -618,7 +618,7 @@ func (e *quotaEvaluator) Evaluate(a admission.Attributes) error {
select { select {
case <-waiter.finished: case <-waiter.finished:
case <-time.After(10 * time.Second): case <-time.After(10 * time.Second):
return apierrors.NewInternalError(fmt.Errorf("resource quota evaluates timeout")) return apierrors.NewInternalError(fmt.Errorf("resource quota evaluation timed out"))
} }
return waiter.result return waiter.result