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
Branches
Tags
No related merge requests found
...@@ -241,7 +241,7 @@ kubectl create -f ${poddir}/pod-init.yaml --namespace=${instance} ...@@ -241,7 +241,7 @@ kubectl create -f ${poddir}/pod-init.yaml --namespace=${instance}
echo -n "Waiting for init" echo -n "Waiting for init"
for ((i=0; i<400; i++)); do for ((i=0; i<400; i++)); do
echo -n "." 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 sleep 1
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment