Merge pull request #7409 from akazemis/11414-fix-the-helm-upgrade-force-log-issue

log.Printf replaced to fix the helm upgrade log issue
pull/7492/head
Taylor Thomas 5 years ago committed by GitHub
commit c8c0000725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,6 @@ import (
"encoding/json"
"fmt"
"io"
"log"
"strings"
"sync"
"time"
@ -421,7 +420,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