Skip to content
Snippets Groups Projects
Verified Commit 4d2905c5 authored by David Hoese's avatar David Hoese
Browse files

Try handling secret not existing for rabbitmq deploy

parent feca8b36
No related merge requests found
......@@ -109,7 +109,7 @@ deploy_prod_rabbit:
- kubeconfig=$(basename $kubekorner_k3s_config)
# get password from any previous installation
# if we don't do this the password will get out of sync
- pw=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 -d)
- pw=$((kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" || echo "") | base64 -d)
- auth_sec="geosphere-rabbit-rabbitmq"
- if [ $pw != "" ]; then EXTRA_ARGS="--set auth.existingPasswordSecret=$auth_sec --set auth.existingErlangSecret=$auth_sec"; fi
# install third-party rabbitmq server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment