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

Add admin password handling to postgres distribution

parent 4bc7bd29
No related branches found
Tags r20210101_0326
No related merge requests found
......@@ -34,7 +34,8 @@ echo $sec_info
auth_sec="${release_name}-postgresql"
if [[ "$sec_info" != "" ]]; then
pw=$(kubectl get secret --namespace $ns $auth_sec -o jsonpath="{.data.postgresql-password}" | base64 -d);
EXTRA_ARGS="--set postgresqlPassword=$pw";
admin_pw=$(kubectl get secret --namespace $ns $auth_sec -o jsonpath="{.data.postgresql-postgres-password}" | base64 -d);
EXTRA_ARGS="--set postgresqlPassword=$pw --set postgresqlPostgresPassword=$admin_pw";
fi
echo "Adding extra arguments: $EXTRA_ARGS"
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