diff --git a/helm/mail/templates/_helpers.tpl b/helm/mail/templates/_helpers.tpl index 74c581f..1eef90a 100644 --- a/helm/mail/templates/_helpers.tpl +++ b/helm/mail/templates/_helpers.tpl @@ -82,7 +82,7 @@ Return the secret containing HTTPS/TLS certificates {{- define "tls.secretName" -}} {{- $secretName := .Values.certs.existingSecret -}} {{- if $secretName -}} - {{- printf "%s" (tpl $secretName .) -}} # Use '.' for context, not '$' + {{- printf "%s" (tpl $secretName .) -}} {{- else -}} {{- printf "smtp-relay-mail-certs" -}} {{- end -}}