mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #8437 from hiddeco/kube/log-printf
fix(kube): use logger instead of fmt.Printf
This commit is contained in:
commit
298f574606
1 changed files with 3 additions and 3 deletions
|
|
@ -542,14 +542,14 @@ func (c *Client) waitForPodSuccess(obj runtime.Object, name string) (bool, error
|
|||
|
||||
switch o.Status.Phase {
|
||||
case v1.PodSucceeded:
|
||||
fmt.Printf("Pod %s succeeded\n", o.Name)
|
||||
c.Log("Pod %s succeeded", o.Name)
|
||||
return true, nil
|
||||
case v1.PodFailed:
|
||||
return true, errors.Errorf("pod %s failed", o.Name)
|
||||
case v1.PodPending:
|
||||
fmt.Printf("Pod %s pending\n", o.Name)
|
||||
c.Log("Pod %s pending", o.Name)
|
||||
case v1.PodRunning:
|
||||
fmt.Printf("Pod %s running\n", o.Name)
|
||||
c.Log("Pod %s running", o.Name)
|
||||
}
|
||||
|
||||
return false, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue