Files
mailhog/templates/smtp-secret.yaml
2025-11-16 20:18:30 +08:00

13 lines
414 B
YAML

{{- if and (.Values.outgoingSMTP.enabled) (not .Values.outgoingSMTP.existingSecret) -}}
apiVersion: v1
kind: Secret
metadata:
labels:
{{- include "mailhog.labels" . | nindent 4 }}
name: {{ template "mailhog.outgoingSMTPSecret" . }}
namespace: {{ .Release.Namespace | quote }}
type: Opaque
data:
{{ .Values.outgoingSMTP.fileName }}: {{ .Values.outgoingSMTP.fileContents | toJson | b64enc }}
{{- end -}}