{{- if (include "kafka.log4j.createConfigMap" .) }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "kafka.log4j.configMapName" . }}
  labels: {{- include "kafka.labels" . | nindent 4 }}
data:
  log4j.properties: |-
    {{ .Values.log4j | indent 4 }}
{{- end -}}
