Skip to content

Commit

Permalink
e2e: wait for webhook to be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
aruiz14 committed Nov 8, 2024
1 parent 37868de commit 649a585
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/e2e-docker-start
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,16 @@ if [ "$STATUS" != "200" ]; then
fi

echo "Dashboard UI is ready"

echo "Waiting for webhook to be running..."
okay=0
while [ $okay -lt 20 ] ; do
if docker exec cypress kubectl -n cattle-system get po -l app=rancher-webhook | grep -q '1/1.*Running' ; then
break
else
echo "Webhook not ready, checking again in 10s..."
okay=$((okay+1))
sleep 10
fi
done
echo "Rancher is ready"

0 comments on commit 649a585

Please sign in to comment.