{{- if (include "kafka.createConfigmap" .) }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "kafka.fullname" . }}-configuration
  labels: {{- include "kafka.labels" . | nindent 4 }}
data:
  server.properties: |-
    {{ .Values.config | nindent 4 }}
{{- end -}}
