Merge pull request #80393 from smarterclayton/pod_failure

Pod e2e for reading last line can flake if pod runs to completion
This commit is contained in:
Kubernetes Prow Robot 2019-07-23 10:01:46 -07:00 committed by GitHub
commit 16b65b259d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -594,7 +594,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 !e2epod.CheckPodsRunningReady(c, ns, []string{podName}, framework.PodStartTimeout) {
if !e2epod.CheckPodsRunningReadyOrSucceeded(c, ns, []string{podName}, framework.PodStartTimeout) {
e2elog.Failf("Pod for run-log-test was not ready")
}