diff --git a/test/util/e2e.go b/test/util/e2e.go index 2b69e89e5e..3809562092 100644 --- a/test/util/e2e.go +++ b/test/util/e2e.go @@ -94,13 +94,6 @@ func WaitForKueueAvailability(ctx context.Context, k8sClient client.Client) { gomega.EventuallyWithOffset(1, func(g gomega.Gomega) error { g.Expect(k8sClient.Get(ctx, kcmKey, deployment)).To(gomega.Succeed()) g.Expect(k8sClient.List(ctx, &pods, client.InNamespace(GetNamespace()), client.MatchingLabels(deployment.Spec.Selector.MatchLabels))).To(gomega.Succeed()) - for _, pod := range pods.Items { - for _, cs := range pod.Status.ContainerStatuses { - if cs.RestartCount > 0 { - return gomega.StopTrying(fmt.Sprintf("%q in %q has restarted %d times", cs.Name, pod.Name, cs.RestartCount)) - } - } - } g.Expect(deployment.Status.Conditions).To(gomega.ContainElement(gomega.BeComparableTo( appsv1.DeploymentCondition{ Type: appsv1.DeploymentAvailable,