Files
amplify-fusion/templates/common/secret-frommail.yaml
2026-01-21 17:37:42 +11:00

16 lines
650 B
YAML

{{- if .Values.common.email_authentication -}}
{{- if .Values.common.fromMail.existingSecret -}}
{{- $existingSecret := (lookup "v1" "Secret" .Release.Namespace .Values.common.fromMail.name ).metadata | required "Secret .Values.common.fromMail.name is required. Create it external to helm chart or set existingSecret to false" }}
{{- else }}
{{ $fromMailPass := .Values.common.fromMail.password | required "Value password is required for the secret fromMail" -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.common.fromMail.name }}
type: "Opaque"
data:
dxchange_email_frompassword: {{ $fromMailPass | quote }}
{{- end -}}
{{- end -}}