Add Logf message for skipped succeeded pods

parent 31bf75c1
...@@ -704,7 +704,8 @@ func WaitForPodsRunningReady(c clientset.Interface, ns string, minPods, allowedN ...@@ -704,7 +704,8 @@ func WaitForPodsRunningReady(c clientset.Interface, ns string, minPods, allowedN
case res && err == nil: case res && err == nil:
nOk++ nOk++
case pod.Status.Phase == v1.PodSucceeded: case pod.Status.Phase == v1.PodSucceeded:
// pod status is succeeded, it doesn't make sense to wait for this pod Logf("The status of Pod %s is Succeeded, skipping waiting", pod.ObjectMeta.Name)
// it doesn't make sense to wait for this pod
continue continue
case pod.Status.Phase != v1.PodFailed: case pod.Status.Phase != v1.PodFailed:
Logf("The status of Pod %s is %s (Ready = false), waiting for it to be either Running (with Ready = true) or Failed", pod.ObjectMeta.Name, pod.Status.Phase) Logf("The status of Pod %s is %s (Ready = false), waiting for it to be either Running (with Ready = true) or Failed", pod.ObjectMeta.Name, pod.Status.Phase)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment