Signed-off-by: Ahmad Kazemi <ahmad.kazemi@recordpoint.com>

log.Printf replaced to fix the log issue.
pull/7409/head
Ahmad Kazemi 5 years ago
parent 1a13366eb0
commit d4c37d33d1

@ -418,7 +418,7 @@ func updateResource(c *Client, target *resource.Info, currentObj runtime.Object,
if err != nil {
return errors.Wrap(err, "failed to replace object")
}
log.Printf("Replaced %q with kind %s for kind %s\n", target.Name, currentObj.GetObjectKind().GroupVersionKind().Kind, kind)
c.Log("Replaced %q with kind %s for kind %s\n", target.Name, currentObj.GetObjectKind().GroupVersionKind().Kind, kind)
} else {
// send patch to server
obj, err = helper.Patch(target.Namespace, target.Name, patchType, patch, nil)

Loading…
Cancel
Save