Skip to content

Commit bdda0a5

Browse files
authored
Merge pull request kubernetes#131090 from natasha41575/deflakeCgroupNotFound
[FG:InPlacePodVerticalScaling] deflake - wait for containers to have started before doing cgroup check
2 parents 5c7491b + d349ac5 commit bdda0a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/framework/pod/resize.go

Lines changed: 5 additions & 0 deletions
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"
@@ -438,6 +439,10 @@ func WaitForPodResizeActuation(ctx context.Context, f *framework.Framework, podC
438439
}, nil
439440
}
440441
}
442+
// Wait for the pod to be ready.
443+
if !podutils.IsPodReady(pod) {
444+
return func() string { return "pod is not ready" }, nil
445+
}
441446
return nil, nil
442447
})),
443448
)

0 commit comments

Comments
 (0)