first commit
This commit is contained in:
15
templates/common/secret-frommail.yaml
Normal file
15
templates/common/secret-frommail.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
{{- 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 -}}
|
||||
Reference in New Issue
Block a user