removes custom scalers from kubectl

Kubernetes-commit: 1f1d24005a6776d2aafbb7ca9f40807d8bc70434
This commit is contained in:
p0lyn0mial 2018-02-26 21:23:33 +01:00 committed by Kubernetes Publisher
parent b9a0cf870f
commit 40a18eb359

View File

@ -196,7 +196,10 @@ func (c *namespacedScaleClient) Update(resource schema.GroupResource, scale *aut
Body(scaleUpdateBytes). Body(scaleUpdateBytes).
Do() Do()
if err := result.Error(); err != nil { if err := result.Error(); err != nil {
return nil, fmt.Errorf("could not update the scale for %s %s: %v", resource.String(), scale.Name, err) // propagate "raw" error from the API
// this allows callers to interpret underlying Reason field
// for example: errors.IsConflict(err)
return nil, err
} }
scaleBytes, err := result.Raw() scaleBytes, err := result.Raw()