Skip to content

Commit

Permalink
Merge pull request #2567 from amazeeio/fix-mongo-rollout
Browse files Browse the repository at this point in the history
Increment the correct variable in mongo dbaas deployment
  • Loading branch information
Schnitzel authored Mar 18, 2021
2 parents 8b2660d + e72c4a7 commit 42bf550
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
set -x

0 comments on commit 42bf550

Please sign in to comment.