{{- range $key, $val := .Values.dovecot.configmaps.dovecot }} --- apiVersion: v1 kind: ConfigMap metadata: name: dovecot-{{ $key }} data: {{ $key | indent 2 }}: | {{ $val | indent 4 }} {{- end }} {{- range $key, $val := .Values.dovecot.configmaps.confd }} --- apiVersion: v1 kind: ConfigMap metadata: name: dovecot-confd-{{ $key }} data: {{ $key | indent 2 }}: | {{ $val | indent 4 }} {{- end }}