mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
[Flaky test]kubectl log test never restart pod
This commit is contained in:
parent
35c8fece86
commit
b18e265315
@ -1416,7 +1416,7 @@ metadata:
|
|||||||
ginkgo.By("creating an pod")
|
ginkgo.By("creating an pod")
|
||||||
nsFlag = fmt.Sprintf("--namespace=%v", ns)
|
nsFlag = fmt.Sprintf("--namespace=%v", ns)
|
||||||
// Agnhost image generates logs for a total of 100 lines over 20s.
|
// Agnhost image generates logs for a total of 100 lines over 20s.
|
||||||
framework.RunKubectlOrDie(ns, "run", podName, "--image="+agnhostImage, nsFlag, "--", "logs-generator", "--log-lines-total", "100", "--run-duration", "20s")
|
framework.RunKubectlOrDie(ns, "run", podName, "--image="+agnhostImage, nsFlag, "--restart=Never", "--", "logs-generator", "--log-lines-total", "100", "--run-duration", "20s")
|
||||||
})
|
})
|
||||||
ginkgo.AfterEach(func() {
|
ginkgo.AfterEach(func() {
|
||||||
framework.RunKubectlOrDie(ns, "delete", "pod", podName, nsFlag)
|
framework.RunKubectlOrDie(ns, "delete", "pod", podName, nsFlag)
|
||||||
|
Loading…
Reference in New Issue
Block a user