improwised-charts/mailhog/templates/auth-secret.yaml

15 lines
492 B
YAML

{{- if and (.Values.auth.enabled) (not .Values.auth.existingSecret) -}}
apiVersion: v1
kind: Secret
metadata:
labels:
app.kubernetes.io/name: {{ include "mailhog.name" . }}
helm.sh/chart: {{ include "mailhog.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
name: {{ template "mailhog.authFileSecret" . }}
type: Opaque
data:
{{ .Values.auth.fileName }}: {{ .Values.auth.fileContents | b64enc }}
{{- end -}}