Commit 186adb3c authored by Julien Leduc's avatar Julien Leduc
Browse files

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

parent 62628ad5
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment