Skip to content

Commit

Permalink
Update secret.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Jul 11, 2024
1 parent cc43e7c commit 4990988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/app/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- $databaseUser := .Values.global.secrets.databaseUser| default "postgres" }}
{{- $databasePassword := .Values.global.secrets.databasePassword | default (randAlphaNum 10) }}
{{- $caseManagementApiKey := .Values.global.secrets.caseManagementApiKey | default (randAlphaNum 10) }}
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace .Release.Name ) | default dict }}
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace "nr-compliance-enforcement" ) | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
# set below to existing secret data or generate a random one when not exists
{{- $databasePassword = (get $secretData "databasePassword") | default ($databasePassword | b64enc) }}
Expand Down

0 comments on commit 4990988

Please sign in to comment.