{{- if not .Values.auth.existingSecret }} {{- if not .Values.auth.password }} {{- fail "auth.password muss gesetzt sein (oder auth.existingSecret verwenden)" }} {{- end }} apiVersion: v1 kind: Secret metadata: name: {{ include "mt5.secretName" . }} labels: {{- include "mt5.labels" . | nindent 4 }} type: Opaque stringData: CUSTOM_USER: {{ .Values.auth.user | quote }} PASSWORD: {{ .Values.auth.password | quote }} {{- end }}