{{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }} --- apiVersion: v1 kind: ConfigMap metadata: name: rules namespace: {{ $.Release.Namespace }} data: {{- if .Values.dashboards.logs.enabled }} {{ ($.Files.Glob "src/rules/loki-rules.yaml").AsConfig | indent 2 }} {{- end }} {{- if .Values.dashboards.metrics.enabled }} {{ ($.Files.Glob "src/rules/mimir-rules.yaml").AsConfig | indent 2 }} {{- end }} {{- if .Values.dashboards.traces.enabled }} {{ ($.Files.Glob "src/rules/tempo-rules.yaml").AsConfig | indent 2 }} {{- end }} {{- end }}