Skip to content

Commit

Permalink
fix: avoid double b64 encoding for DB_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Sep 12, 2024
1 parent 2e16260 commit 6f3874c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chart/templates/postgres-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ stringData:
{{- $password := (( get $secretInj "POSTGRES_PASSWORD" ) | b64dec ) | default (( get $secretObj "POSTGRES_PASSWORD" ) | b64dec ) | default ( randAlphaNum 32 ) }}
{{- $host := print "postgres." .Release.Namespace ".svc.cluster.local" }}
{{- $url := print "postgresql://" $user ":" $password "@" $host }}
{{- $canaryCheckerUrl := ( get $secretObj .Values.db.external.secretKeyRef.key ) | default ( print $url "/canarychecker?sslmode=disable" ) }}
{{- $canaryCheckerUrl := (( get $secretObj .Values.db.external.secretKeyRef.key ) | b64dec ) | default ( print $url "/canarychecker?sslmode=disable" ) }}
POSTGRES_USER: {{ $user | quote }}
POSTGRES_PASSWORD: {{ $password | quote }}
POSTGRES_HOST: {{ $host | quote }}
Expand Down

0 comments on commit 6f3874c

Please sign in to comment.