|
@ -21,15 +21,17 @@ kubectl create namespace "$NAMESPACE" |
|
|
helm install -f "$DIR/ci_values.yaml" -n "$NAMESPACE" "$HELM_PACKAGE" "$1" |
|
|
helm install -f "$DIR/ci_values.yaml" -n "$NAMESPACE" "$HELM_PACKAGE" "$1" |
|
|
|
|
|
|
|
|
i=0 |
|
|
i=0 |
|
|
while [ "$(kubectl get pod -n "$NAMESPACE" -l=app.kubernetes.io/name=covidok -o jsonpath='{.items[*].status.containerStatuses[0].ready}')" != "true" ]; do |
|
|
while [[ ! $(kubectl get pod -n "$NAMESPACE" -l=app.kubernetes.io/name=covidok -o jsonpath='{.items[*].status.containerStatuses[0].ready}') == *"false"* ]]; do |
|
|
echo "Covidok backend is not yet ready..." |
|
|
echo "Covidok backend is not yet ready..." |
|
|
if [ $i -gt 10 ] |
|
|
# Timeout is 200 sec, mysql should be available after 2 min |
|
|
|
|
|
if [ $i -gt 40 ] |
|
|
then |
|
|
then |
|
|
echo "Timeout reached while waiting for backend to start" |
|
|
echo "Timeout reached while waiting for backend to start" |
|
|
exit 1 |
|
|
exit 1 |
|
|
else |
|
|
else |
|
|
sleep 5 |
|
|
sleep 5 |
|
|
fi |
|
|
fi |
|
|
|
|
|
i=$((i+1)) |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
echo "Covidok backend is up" |
|
|
echo "Covidok backend is up" |
|
|