mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
wait for containers to have started before doing cgroup check
This commit is contained in:
parent
34e80be133
commit
d349ac57e4
@ -29,6 +29,7 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
utilerrors "k8s.io/apimachinery/pkg/util/errors"
|
||||
helpers "k8s.io/component-helpers/resource"
|
||||
"k8s.io/kubectl/pkg/util/podutils"
|
||||
kubecm "k8s.io/kubernetes/pkg/kubelet/cm"
|
||||
kubeqos "k8s.io/kubernetes/pkg/kubelet/qos"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
@ -444,6 +445,10 @@ func WaitForPodResizeActuation(ctx context.Context, f *framework.Framework, podC
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
// Wait for the pod to be ready.
|
||||
if !podutils.IsPodReady(pod) {
|
||||
return func() string { return "pod is not ready" }, nil
|
||||
}
|
||||
return nil, nil
|
||||
})),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user