UPSTREAM: 80393: Prevent a flake in a pod e2e test
We can fail to observe ready because pod completes so fast.
@@ -578,7 +578,7 @@ var _ = SIGDescribe("Kubectl client", func() {
ginkgo.By("executing a command with run")
framework.RunKubectlOrDie("run", podName, "--generator=run-pod/v1", "--image="+busyboxImage, "--restart=OnFailure", nsFlag, "--", "sh", "-c", "sleep 10; seq 100 | while read i; do echo $i; sleep 0.01; done; echo EOF")
- if !framework.CheckPodsRunningReady(c, ns, []string{podName}, framework.PodStartTimeout) {
+ if !framework.CheckPodsRunningReadyOrSucceeded(c, ns, []string{podName}, framework.PodStartTimeout) {
framework.Failf("Pod for run-log-test was not ready")
}
