Skip to content

Commit 9765a5d

Browse files
ChughShilpaChristianZaccaria
authored andcommitted
CARRY: Remove check for restarted pod from test suite
1 parent 9501eb6 commit 9765a5d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/util/e2e.go

-11
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,6 @@ func waitForOperatorAvailability(ctx context.Context, k8sClient client.Client, k
9191
gomega.EventuallyWithOffset(2, func(g gomega.Gomega) error {
9292
g.Expect(k8sClient.Get(ctx, key, deployment)).To(gomega.Succeed())
9393
g.Expect(k8sClient.List(ctx, pods, client.InNamespace(GetNamespace()), client.MatchingLabels(deployment.Spec.Selector.MatchLabels))).To(gomega.Succeed())
94-
for _, pod := range pods.Items {
95-
for _, cs := range pod.Status.ContainerStatuses {
96-
// To make sure that we don't have restarts of controller-manager.
97-
// If we have that's mean that something went wrong, and there is
98-
// no needs to continue trying check availability.
99-
if cs.RestartCount > 0 {
100-
return gomega.StopTrying(fmt.Sprintf("%q in %q has restarted %d times", cs.Name, pod.Name, cs.RestartCount))
101-
}
102-
}
103-
}
104-
// To verify that webhooks are ready, checking is deployment have condition Available=True.
10594
g.Expect(deployment.Status.Conditions).To(gomega.ContainElement(gomega.BeComparableTo(
10695
appsv1.DeploymentCondition{Type: appsv1.DeploymentAvailable, Status: corev1.ConditionTrue},
10796
cmpopts.IgnoreFields(appsv1.DeploymentCondition{}, "Reason", "Message", "LastUpdateTime", "LastTransitionTime")),

0 commit comments

Comments
 (0)