Skip to content

Commit

Permalink
Merge pull request #12554 from rancher/gha-portpr-11741156285-1
Browse files Browse the repository at this point in the history
[backport v2.9.5] e2e: wait for webhook to be ready
  • Loading branch information
richard-cox authored Nov 21, 2024
2 parents af3c54b + 649a585 commit e251654
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 e251654

Please sign in to comment.