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)
casepod.Status.Phase==v1.PodSucceeded:
badPods=append(badPods,pod)
Logf("The status of Pod %s is Succeeded which is unexpected",pod.ObjectMeta.Name)
returnfalse,errors.New("unexpected Succeeded pod state")
casepod.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)