mirror of https://github.com/rancher/dashboard.git
e2e: wait for webhook to be ready
This commit is contained in:
parent
54f24cf9c9
commit
79d71c62cc
|
|
@ -59,3 +59,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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue