Skip to content

Commit 2dc3dbb

Browse files
committed
fix loop typo
Signed-off-by: Alex Castilio dos Santos <[email protected]>
1 parent 469b61d commit 2dc3dbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/framework/kubernetes/check-pod-status.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ func WaitForPodReady(ctx context.Context, clientset *kubernetes.Clientset, names
9090
}
9191

9292
// Check all container status.
93-
for i := range podList.Items[i].Status.ContainerStatuses {
94-
if !podList.Items[i].Status.ContainerStatuses[i].Ready {
95-
log.Printf("container \"%s\" in pod \"%s\" is not ready yet. Waiting...\n", podList.Items[i].Status.ContainerStatuses[i].Name, podList.Items[i].Name)
93+
for j := range podList.Items[i].Status.ContainerStatuses {
94+
if !podList.Items[i].Status.ContainerStatuses[j].Ready {
95+
log.Printf("container \"%s\" in pod \"%s\" is not ready yet. Waiting...\n", podList.Items[i].Status.ContainerStatuses[j].Name, podList.Items[i].Name)
9696
return false, nil
9797
}
9898
}

0 commit comments

Comments
 (0)