From 730927315e107d9ee4a402c48c2128a9d2857103 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Thu, 14 Feb 2019 10:57:28 -0500 Subject: [PATCH] Error message has incorrect pluralization Shows up to end users: ``` loading OpenAPI spec for "v1beta1.metrics.k8s.io" failed with: OpenAPI spec does not exists ``` --- .../kube-aggregator/pkg/controllers/openapi/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/kube-aggregator/pkg/controllers/openapi/controller.go b/staging/src/k8s.io/kube-aggregator/pkg/controllers/openapi/controller.go index 713a06979d..764d7b8f3a 100644 --- a/staging/src/k8s.io/kube-aggregator/pkg/controllers/openapi/controller.go +++ b/staging/src/k8s.io/kube-aggregator/pkg/controllers/openapi/controller.go @@ -127,7 +127,7 @@ func (c *AggregationController) sync(key string) (syncAction, error) { return syncRequeueRateLimited, err case httpStatus == http.StatusNotModified: case httpStatus == http.StatusNotFound || returnSpec == nil: - return syncRequeueRateLimited, fmt.Errorf("OpenAPI spec does not exists") + return syncRequeueRateLimited, fmt.Errorf("OpenAPI spec does not exist") case httpStatus == http.StatusOK: if err := c.openAPIAggregationManager.UpdateAPIServiceSpec(key, returnSpec, newEtag); err != nil { return syncRequeueRateLimited, err