Merge pull request #120874 from ruquanzhao/fixDevicePluginProbeCI

fix DevicePluginProbe node-e2e: pod and kubelet restarts
This commit is contained in:
Kubernetes Prow Robot 2023-10-14 23:50:28 +02:00 committed by GitHub
commit ae9dc3330e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,7 +384,9 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) {
ginkgo.By("Checking an instance of the pod is running")
gomega.Eventually(ctx, getPodByName).
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(
BeAPodInPhase(v1.PodRunning),
BeAPodReady(),