{{- if not .Values.auth.password }} {{- fail "auth.password is required (--set-string auth.password=...)" }} {{- end }} apiVersion: v1 kind: Secret metadata: name: {{ include "postgresql.fullname" . }} labels: {{- include "postgresql.labels" . | nindent 4 }} type: Opaque stringData: POSTGRES_PASSWORD: {{ .Values.auth.password | quote }} POSTGRES_USER: {{ .Values.auth.username | quote }} POSTGRES_DB: {{ .Values.auth.database | quote }}