mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #5140 from satnam6502/waitforpod
Fix formating of time output in waitForPodCondition
This commit is contained in:
commit
073ecd180e
@ -70,9 +70,9 @@ func waitForPodCondition(c *client.Client, ns, podName, desc string, condition p
|
|||||||
if done {
|
if done {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
Logf("Waiting for pod %s status to be %q (found %q) (%d secs)", podName, api.PodRunning, pod.Status.Phase, time.Since(start).Seconds())
|
Logf("Waiting for pod %s status to be %q (found %q) (%.2f seconds)", podName, api.PodRunning, pod.Status.Phase, time.Since(start).Seconds())
|
||||||
}
|
}
|
||||||
return fmt.Errorf("gave up waiting for pod %s to be %s after %v", podName, desc, podStartTimeout)
|
return fmt.Errorf("gave up waiting for pod %s to be %s after %.2f seconds", podName, desc, podStartTimeout.Seconds())
|
||||||
}
|
}
|
||||||
|
|
||||||
func waitForPodRunning(c *client.Client, podName string) error {
|
func waitForPodRunning(c *client.Client, podName string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user