configmap.yaml 427 B

123456789101112
  1. {{- if and (not .Values.loki.existingSecretForConfig) (not .Values.loki.configAsSecret) -}}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: {{ include "loki.fullname" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "loki.labels" . | nindent 4 }}
  9. data:
  10. config.yaml: |
  11. {{- tpl (mergeOverwrite (tpl .Values.loki.config . | fromYaml) .Values.loki.structuredConfig | toYaml) . | nindent 4 }}
  12. {{- end -}}