Skip to content
Snippets Groups Projects
Commit 5a8ed075 authored by Julien Leduc's avatar Julien Leduc
Browse files

Wait loop should stop whether the pod is Completed or in Error

parent ba5749f9
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,7 @@ kubectl create -f ${poddir}/pod-init.yaml --namespace=${instance}
echo -n "Waiting for init"
for ((i=0; i<400; i++)); do
echo -n "."
kubectl get pod init -a --namespace=${instance} | grep -q Completed && break
kubectl get pod init -a --namespace=${instance} | egrep -q 'Completed|Error' && break
sleep 1
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment