Skip to content

Commit

Permalink
fix secret.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: OMPRAKASH MISHRA <[email protected]>
  • Loading branch information
mishraomp committed Oct 28, 2024
1 parent d25bb7c commit 9b4867d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/app/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
{{- $databaseName = b64dec (get $secretData "dbname") }}
{{- $host = printf "%s:%s" (b64dec (get $secretData "host")) (b64dec (get $secretData "port")) }}
{{- $hostWithoutPort = printf "%s" (b64dec (get $secretData "host")) }}
{{- else}}
{{- else }}
{{- $databaseUser = .Values.global.config.databaseUser| default "quickstart" }}
{{- $databasePassword := .Values.global.secrets.databasePassword | default (randAlphaNum 10) }}
{{- $databasePassword = .Values.global.secrets.databasePassword | default (randAlphaNum 10) }}
{{- $secretName := printf "%s-database" .Release.Name }}
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace $secretName ) | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
Expand Down

0 comments on commit 9b4867d

Please sign in to comment.