Commit 0bf96a3c authored by guoyunxian's avatar guoyunxian

Remove the same case judement

This patch remove the same case judement
parent 99eee154
...@@ -590,8 +590,6 @@ func WaitForPodsRunningReady(c clientset.Interface, ns string, minPods, allowedN ...@@ -590,8 +590,6 @@ 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:
continue
case pod.Status.Phase == v1.PodSucceeded:
Logf("The status of Pod %s is Succeeded which is unexpected", pod.ObjectMeta.Name) Logf("The status of Pod %s is Succeeded which is unexpected", pod.ObjectMeta.Name)
badPods = append(badPods, pod) badPods = append(badPods, pod)
// it doesn't make sense to wait for this pod // it doesn't make sense to wait for this pod
......
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