From e72c4a78157adf1e8f301738fe015af5c0e0eee9 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 11 Mar 2021 11:09:07 +0800 Subject: [PATCH] fix: increment the correct variable in mongo dbaas deployment --- .../scripts/exec-kubectl-mongodb-dbaas.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/kubectl-build-deploy-dind/scripts/exec-kubectl-mongodb-dbaas.sh b/images/kubectl-build-deploy-dind/scripts/exec-kubectl-mongodb-dbaas.sh index d383711a05..85b7a21335 100644 --- a/images/kubectl-build-deploy-dind/scripts/exec-kubectl-mongodb-dbaas.sh +++ b/images/kubectl-build-deploy-dind/scripts/exec-kubectl-mongodb-dbaas.sh @@ -8,7 +8,7 @@ OPERATOR_TIMEOUT=180 until kubectl --insecure-skip-tls-verify -n ${NAMESPACE} get mongodbconsumer/${SERVICE_NAME} -o yaml | shyaml get-value spec.consumer.database do if [ $OPERATOR_COUNTER -lt $OPERATOR_TIMEOUT ]; then - let SERVICE_BROKER_COUNTER=SERVICE_BROKER_COUNTER+1 + let OPERATOR_COUNTER=OPERATOR_COUNTER+1 echo "Service for ${SERVICE_NAME} not available yet, waiting for 5 secs" sleep 5 else @@ -33,4 +33,4 @@ kubectl patch --insecure-skip-tls-verify \ configmap lagoon-env \ -p "{\"data\":{\"${SERVICE_NAME_UPPERCASE}_HOST\":\"${DB_HOST}\", \"${SERVICE_NAME_UPPERCASE}_USERNAME\":\"${DB_USER}\", \"${SERVICE_NAME_UPPERCASE}_PASSWORD\":\"${DB_PASSWORD}\", \"${SERVICE_NAME_UPPERCASE}_DATABASE\":\"${DB_NAME}\", \"${SERVICE_NAME_UPPERCASE}_PORT\":\"${DB_PORT}\", \"${SERVICE_NAME_UPPERCASE}_AUTHSOURCE\":\"${DB_AUTHSOURCE}\", \"${SERVICE_NAME_UPPERCASE}_AUTHMECHANISM\":\"${DB_AUTHMECHANISM}\", \"${SERVICE_NAME_UPPERCASE}_AUTHTLS\":\"${DB_AUTHTLS}\" }}" -set -x \ No newline at end of file +set -x