gate: wait longer for pods to come up if necessary

Change-Id: Iedf622a456fa248c9d49d8b49880ba9d9bcc1a0b
This commit is contained in:
Chris Wedgwood 2018-01-21 05:55:26 +00:00
parent 72a91e80f7
commit b66b6a0697

View File

@ -21,7 +21,7 @@ end=$(date +%s)
if ! [ -z $2 ]; then
end=$((end + $2))
else
end=$((end + 600))
end=$((end + 900))
fi
while true; do
kubectl get pods --namespace=$1 -o json | jq -r \
@ -36,7 +36,7 @@ while true; do
grep false > /dev/null && JOBR="False" || JOBR="True"
[ $PENDING == "False" -a $READY == "True" -a $JOBR == "True" ] && \
break || true
sleep 1
sleep 5
now=$(date +%s)
[ $now -gt $end ] && echo containers failed to start. && \
kubectl get pods --namespace $1 -o wide && exit -1