You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ensures that the restartable init containers receive a termination
signal even if there are any not-started restartable init containers, by
ignoring the not-running containers.
err:=e2epod.WaitForPodCondition(ctx, f.ClientSet, pod.Namespace, pod.Name, "the second init container is running but not started", 2*time.Minute, func(pod*v1.Pod) (bool, error) {
3194
+
ifpod.Status.Phase!=v1.PodPending {
3195
+
returnfalse, fmt.Errorf("pod should be in pending phase")
3196
+
}
3197
+
iflen(pod.Status.InitContainerStatuses) !=3 {
3198
+
returnfalse, fmt.Errorf("pod should have the same number of statuses as init containers")
framework.ExpectNoError(err, "the pod should be deleted before its terminationGracePeriodSeconds if the restartalbe init containers get termination signal correctly")
0 commit comments