Skip to content

Commit

Permalink
fix: py api env var (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Feb 19, 2024
1 parent 7267caa commit efa9a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/quickstart-openshift-backends/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if and .Values.global.secrets .Values.global.secrets.enabled}}
{{- $databaseUser := .Values.global.secrets.databaseUser| default "quickstart" }}
{{- $databasePassword := .Values.global.secrets.databasePassword | default (randAlphaNum 10) | quote }}
{{- $databasePassword := .Values.global.secrets.databasePassword | default (randAlphaNum 10) }}
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace .Release.Name ) | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
# set below to existing secret data or generate a random one when not exists
Expand Down Expand Up @@ -33,5 +33,5 @@ data:
POSTGRES_USER: {{ $databaseUser | b64enc | quote }}
POSTGRES_DATABASE: {{ $databaseName | b64enc | quote }}
POSTGRES_HOST: {{ $hostWithoutPort | b64enc | quote }}

POSTGRES_DB: {{ $databaseName | b64enc | quote }}
{{- end }}

0 comments on commit efa9a78

Please sign in to comment.