{{- if (include "postfix.createConfigmap" .) }} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "postfix.fullname" . }} namespace: {{ .Release.Namespace | quote }} labels: {{- include "postfix.labels" . | nindent 4 }} data: postfix.cf: |- {{ .Values.postfix.configuration | indent 4 }} {{- end -}}