Skip to content

Commit d349ac5

Browse files
committed
wait for containers to have started before doing cgroup check
1 parent 34e80be commit d349ac5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/framework/pod/resize.go

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3030
utilerrors "k8s.io/apimachinery/pkg/util/errors"
3131
helpers "k8s.io/component-helpers/resource"
32+
"k8s.io/kubectl/pkg/util/podutils"
3233
kubecm "k8s.io/kubernetes/pkg/kubelet/cm"
3334
kubeqos "k8s.io/kubernetes/pkg/kubelet/qos"
3435
"k8s.io/kubernetes/test/e2e/framework"
@@ -444,6 +445,10 @@ func WaitForPodResizeActuation(ctx context.Context, f *framework.Framework, podC
444445
}, nil
445446
}
446447
}
448+
// Wait for the pod to be ready.
449+
if !podutils.IsPodReady(pod) {
450+
return func() string { return "pod is not ready" }, nil
451+
}
447452
return nil, nil
448453
})),
449454
)

0 commit comments

Comments
 (0)