{{- if .Values.graylog.serverFiles -}}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "graylog.fullname" . }}-files
  labels:
{{ include "graylog.metadataLabels" . | indent 4 }}
data:
{{- range $key, $value := .Values.graylog.serverFiles }}
  {{ $key }}: |
{{ $value | default "{}" | indent 4 }}
{{- end -}}
{{- end -}}
