[monitoring] Fix infra dashboards missing in default variant

The default variant deploys monitoring to the cozy-monitoring namespace,
but the infra dashboards condition only checked for tenant-root. This
adds cozy-monitoring to the condition, consistent with the existing
pattern in vmagent.yaml.

Fixes cozystack/cozystack#2349

Signed-off-by: mattia-eleuteri <mattia@hidora.io>
(cherry picked from commit b8d48ad711)
This commit is contained in:
mattia-eleuteri 2026-04-09 16:31:24 +02:00 committed by github-actions[bot]
parent ec480b0617
commit 3b2d6a6325

View file

@ -14,7 +14,7 @@ spec:
url: http://grafana-dashboards.cozy-grafana-operator.svc/{{ . }}.json
{{- end }}
{{- end }}
{{- if eq .Release.Namespace "tenant-root" }}
{{- if or (eq .Release.Namespace "tenant-root") (eq .Release.Namespace "cozy-monitoring") }}
{{- range (split "\n" (.Files.Get "dashboards-infra.list")) }}
{{- $parts := split "/" . }}
{{- if eq (len $parts) 2 }}