mirror of https://github.com/k3s-io/k3s
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 ```pull/564/head
parent
08d0522730
commit
730927315e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue