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

Debug kubectl usage

parent 577c94bc
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,9 @@ deploy_prod_rabbit: ...@@ -109,7 +109,9 @@ deploy_prod_rabbit:
- kubeconfig=$(basename $kubekorner_k3s_config) - kubeconfig=$(basename $kubekorner_k3s_config)
# get password from any previous installation # get password from any previous installation
# if we don't do this the password will get out of sync # if we don't do this the password will get out of sync
- kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" 2>/dev/null
- pw=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" 2>/dev/null || echo "") - pw=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" 2>/dev/null || echo "")
- echo $pw
- pw=$(echo $pw | base64 -d) - pw=$(echo $pw | base64 -d)
- auth_sec="geosphere-rabbit-rabbitmq" - auth_sec="geosphere-rabbit-rabbitmq"
- if [ $pw != "" ]; then EXTRA_ARGS="--set auth.existingPasswordSecret=$auth_sec --set auth.existingErlangSecret=$auth_sec"; fi - if [ $pw != "" ]; then EXTRA_ARGS="--set auth.existingPasswordSecret=$auth_sec --set auth.existingErlangSecret=$auth_sec"; fi
......
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