fix(kube): return error when object cannot be patched

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/6836/head
Matthew Fisher 5 years ago
parent 6ac64488f3
commit a505f91073
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -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