mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
kubectl logs test: use agnhost pause instaed of fixed duration sleep
This commit is contained in:
parent
84a7f1ea15
commit
12cbad2110
@ -75,13 +75,13 @@ func testingDeployment(name, ns string, numberOfPods int32) appsv1.Deployment {
|
||||
Name: "container-1",
|
||||
Image: imageutils.GetE2EImage(imageutils.Agnhost),
|
||||
Command: []string{"/bin/sh", "-c"},
|
||||
Args: []string{"/agnhost logs-generator --log-lines-total 10 --run-duration 3s && sleep 300"},
|
||||
Args: []string{"/agnhost logs-generator --log-lines-total 10 --run-duration 3s && /agnhost pause"},
|
||||
},
|
||||
{
|
||||
Name: "container-2",
|
||||
Image: imageutils.GetE2EImage(imageutils.Agnhost),
|
||||
Command: []string{"/bin/sh", "-c"},
|
||||
Args: []string{"/agnhost logs-generator --log-lines-total 20 --run-duration 3s && sleep 300"},
|
||||
Args: []string{"/agnhost logs-generator --log-lines-total 20 --run-duration 3s && /agnhost pause"},
|
||||
},
|
||||
},
|
||||
RestartPolicy: v1.RestartPolicyAlways,
|
||||
|
Loading…
Reference in New Issue
Block a user