Skip to content

Commit 22745b8

Browse files
committed
Increase the time to wait until the pod becomes ImagePullBackOff
Signed-off-by: Ayato Tokubi <[email protected]>
1 parent 851e33d commit 22745b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/extended/node/image_volume.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ var _ = g.Describe("[sig-node] [FeatureGate:ImageVolume] ImageVolume", func() {
5757
o.Expect(err).NotTo(o.HaveOccurred())
5858

5959
g.By("Waiting for pod to be ErrImagePull or ImagePullBackOff")
60-
err = e2epod.WaitForPodCondition(ctx, oc.AdminKubeClient(), pod.Namespace, pod.Name, "ImagePullBackOff", 60*time.Second, func(pod *v1.Pod) (bool, error) {
60+
// wait for 5 mins so that the pod in metal-ovn-two-node-arbiter-ipv6-techpreview can become ImagePullBackOff.
61+
err = e2epod.WaitForPodCondition(ctx, oc.AdminKubeClient(), pod.Namespace, pod.Name, "ImagePullBackOff", 5*time.Minute, func(pod *v1.Pod) (bool, error) {
6162
return len(pod.Status.ContainerStatuses) > 0 &&
6263
pod.Status.ContainerStatuses[0].State.Waiting != nil &&
6364
(pod.Status.ContainerStatuses[0].State.Waiting.Reason == "ImagePullBackOff" || pod.Status.ContainerStatuses[0].State.Waiting.Reason == "ErrImagePull"),

0 commit comments

Comments
 (0)