Do not create ruler for dashboards when Grafana is not enabled

Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
Michel Hollands 2024-04-10 11:49:49 +01:00
parent e7f28a261e
commit d7063da3d4

View File

@ -1,5 +1,5 @@
{{- if .Values.local.metrics.enabled }} {{- if .Values.local.grafana.enabled }}
{{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }} {{- if and .Values.local.grafana.enabled (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled .Values.dashboards.traces.enabled) }}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata: