Skip to content

Commit 71487b5

Browse files
committed
wait for all the pods to be ready
1 parent d5edbd0 commit 71487b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/util/helpers.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ _wait_for_istio() {
115115
echo "Timed out waiting for $kind $name in namespace $namespace to be created."
116116
exit 1
117117
fi
118+
if ! kubectl wait --for=condition=Ready pod --all -n "$namespace" --timeout 60s; then
119+
echo "Timed out waiting for pods in namespace $namespace to be ready after applying $kind $name."
120+
exit 1
121+
fi
118122
sleep 2
119123
}
120124

0 commit comments

Comments
 (0)