# helm_charts_config-dbless.yaml
{{- if (and (not .Values.ingressController.enabled) (eq .Values.env.database "off")) }}
{{- if not .Values.dblessConfig.configMap }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "kong.dblessConfig.fullname" . }}
  labels:
    {{- include "kong.metaLabels" . | nindent 4 }}
data:
  kong.yml: |
{{ .Values.dblessConfig.config | toYaml | indent 4 }}
{{- end }}
{{- end }}