Merge pull request #6836 from bacongobbler/fix-6805

fix(kube): return error when object cannot be patched
pull/6840/head
Matthew Fisher 5 years ago committed by GitHub
commit 469bb6b0bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -401,7 +401,7 @@ func updateResource(c *Client, target *resource.Info, currentObj runtime.Object,
// send patch to server
obj, err = helper.Patch(target.Namespace, target.Name, patchType, patch, nil)
if err != nil {
log.Printf("Cannot patch %s: %q (%v)", kind, target.Name, err)
return errors.Wrapf(err, "cannot patch %q with kind %s", target.Name, kind)
}
}

Loading…
Cancel
Save