mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 01:26:28 +00:00
fix DevicePluginProbe node-e2e: pod and kubelet restarts
The kubelet restarts working pods with an exponential back-off delay, with a maximum cap of 5 minutes. The waiting 1 minutes may happen to be in back-off time. Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
This commit is contained in:
parent
294bde0079
commit
babac47c6f
@ -384,7 +384,9 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) {
|
|||||||
ginkgo.By("Checking an instance of the pod is running")
|
ginkgo.By("Checking an instance of the pod is running")
|
||||||
gomega.Eventually(ctx, getPodByName).
|
gomega.Eventually(ctx, getPodByName).
|
||||||
WithArguments(f, pod1.Name).
|
WithArguments(f, pod1.Name).
|
||||||
WithTimeout(time.Minute).
|
// The kubelet restarts pod with an exponential back-off delay, with a maximum cap of 5 minutes.
|
||||||
|
// Allow 5 minutes and 10 seconds for the pod to start in a slow environment.
|
||||||
|
WithTimeout(5*time.Minute+10*time.Second).
|
||||||
Should(gomega.And(
|
Should(gomega.And(
|
||||||
BeAPodInPhase(v1.PodRunning),
|
BeAPodInPhase(v1.PodRunning),
|
||||||
BeAPodReady(),
|
BeAPodReady(),
|
||||||
|
Loading…
Reference in New Issue
Block a user