Skip to content

Commit

Permalink
Fix conditional statements for passwords in _helpers.tpl file
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Feb 16, 2024
1 parent 64197ab commit 64a76c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm/flowforge/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Get the flowfuse secret object name.
Get the secret object name with smtp password.
*/}}
{{- define "forge.smtpSecretName" -}}
{{- if and .Values.forge.email .Values.forge.email.smtp.existingSecret -}}
{{- if and .Values.forge.email .Values.forge.email.smtp .Values.forge.email.smtp.existingSecret -}}
{{- tpl .Values.forge.email.smtp.existingSecret $ -}}
{{- else -}}
{{- printf "flowfuse-secrets" -}}
Expand All @@ -109,13 +109,13 @@ false
Create SMTP password
*/}}
{{- define "forge.smtpPassword" -}}
{{- if and .Values.forge.email (not .Values.forge.email.smtp.existingSecret) .Values.forge.email.smtp.password -}}
{{- if and ( hasKey .Values.forge "email" ) (hasKey .Values.forge.email "smtp") .Values.forge.email.smtp.password -}}
smtp-password: {{ .Values.forge.email.smtp.password | b64enc | quote}}
{{- end -}}
{{- end -}}

{{/*
Create postgresl passwords
Create PostgreSQL passwords
*/}}
{{- define "forge.postgresqlPasswords" -}}
{{- if not .Values.postgresql.auth.existingSecret -}}
Expand Down

0 comments on commit 64a76c9

Please sign in to comment.