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

Pass password and erlang cookie on upgrade correctly

parent f00e728c
No related branches found
Tags 0.2.9
No related merge requests found
......@@ -112,7 +112,11 @@ deploy_prod_rabbit:
- sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq || echo "")
- echo $sec_info
- auth_sec="geosphere-rabbit-rabbitmq"
- if [ "$sec_info" != "" ]; then EXTRA_ARGS="--set auth.existingPasswordSecret=$auth_sec --set auth.existingErlangSecret=$auth_sec"; fi
- if [ "$sec_info" != "" ]; then
pw=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 -d);
ec=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 -d);
EXTRA_ARGS="--set auth.password=$pw --set auth.erlangCookie=$ec";
fi
- echo $EXTRA_ARGS
# install third-party rabbitmq server
- helm repo add bitnami "https://charts.bitnami.com/bitnami"
......
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