{{- if .Values.yamlApplicationConfig -}}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "kafka-ui.fullname" . }}-fromvalues
  namespace: {{ .Release.Namespace }}
  labels:
    {{- include "kafka-ui.labels" . | nindent 4 }}
data:
  config.yml: |-
    {{- tpl (toYaml .Values.yamlApplicationConfig) . | nindent 4}}
{{ end }}
