helm-charts/rspamd/templates/configmap.yaml

23 lines
453 B
YAML

{{- range $key, $val := (index .Values.rspamd "local.d") }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rspamd-{{ $key | replace "_" "-" | replace "." "-" }}
data:
{{ $key | indent 2 }}: |
{{ $val | indent 4 }}
{{- end }}
{{- range $key, $val := (index .Values.rspamd "dkim-keys") }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rspamd-dkim-{{ $key | replace "." "-" }}
data:
{{ $key | indent 2 }}: |
{{ $val | indent 4 }}
{{- end }}