Merge pull request #131090 from natasha41575/deflakeCgroupNotFound

[FG:InPlacePodVerticalScaling] deflake - wait for containers to have started before doing cgroup check
This commit is contained in:
Kubernetes Prow Robot 2025-03-28 00:54:34 -07:00 committed by GitHub
commit bdda0a530e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"
@ -438,6 +439,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
})),
)