Skip to content

Commit a42a1c8

Browse files
authored
Merge pull request kubernetes#93921 from zhouya0/never_restart_agnhost_pod
[Flaky test]kubectl log test never restart pod
2 parents c2bde25 + b18e265 commit a42a1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/kubectl/kubectl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ metadata:
14161416
ginkgo.By("creating an pod")
14171417
nsFlag = fmt.Sprintf("--namespace=%v", ns)
14181418
// Agnhost image generates logs for a total of 100 lines over 20s.
1419-
framework.RunKubectlOrDie(ns, "run", podName, "--image="+agnhostImage, nsFlag, "--", "logs-generator", "--log-lines-total", "100", "--run-duration", "20s")
1419+
framework.RunKubectlOrDie(ns, "run", podName, "--image="+agnhostImage, nsFlag, "--restart=Never", "--", "logs-generator", "--log-lines-total", "100", "--run-duration", "20s")
14201420
})
14211421
ginkgo.AfterEach(func() {
14221422
framework.RunKubectlOrDie(ns, "delete", "pod", podName, nsFlag)

0 commit comments

Comments
 (0)