config-secret.yaml 447 B

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