Skip to content

Commit 5ad7436

Browse files
authored
chore(ci): fix ha test (#2442)
1 parent bd25805 commit 5ad7436

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

e2e/scripts/check-airgap-post-ha-state.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ main() {
7171
# scale up the second deployment to ensure that images can still be pulled
7272
echo "scaling up the 'second' deployment to ensure that images can still be pulled"
7373
kubectl scale -n "$APP_NAMESPACE" deployment/second --replicas=4
74-
sleep 5
74+
echo "waiting for the second deployment to scale up"
75+
for _ in {1..60}; do
76+
if kubectl get pods -n "$APP_NAMESPACE" -o wide | grep -q "second-"; then
77+
break
78+
fi
79+
sleep 1
80+
done
7581
echo "after 5 seconds, pods in the '$APP_NAMESPACE' namespace:"
7682
kubectl get pods -n "$APP_NAMESPACE" -o wide
7783
if ! wait_for_pods_running 60; then

0 commit comments

Comments
 (0)