{{- if .Values.configAsCode.enabled }} kind: ConfigMap apiVersion: v1 metadata: name: {{ include "radicle.fullname" . }}-config labels: app.kubernetes.io/name: {{ include "radicle.name" . }} helm.sh/chart: {{ include "radicle.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} data: config.json: | {{- toYaml .Values.configAsCode.config | fromYaml | toPrettyJson | nindent 4 }} {{- end }}