# grafana_charts_secret-config.yaml
{{- if not .Values.useExternalConfig -}}
apiVersion: v1
kind: Secret
metadata:
  name: enterprise-logs-config
  labels:
    {{- include "enterprise-logs.labels" . | nindent 4 }}
data:
  config.yaml: {{ tpl (mergeOverwrite (tpl .Values.config . | fromYaml) .Values.structuredConfig | toYaml) . | b64enc }}
{{- end }}