Skip to content

Commit 2c6e0fe

Browse files
authored
[monitoring] Fix infra dashboards missing in default variant (#2365)
## What this PR does - Adds `cozy-monitoring` namespace to the infra dashboards rendering condition in `dashboards.yaml` - The default variant deploys the monitoring chart to `cozy-monitoring`, but the condition from #2197 only checked for `tenant-root`, causing all infrastructure dashboards to be missing - This is consistent with the existing pattern in `vmagent.yaml` which already handles both namespaces ## Release note ```release-note [monitoring] Fix infrastructure dashboards not rendering in default variant where monitoring is deployed to cozy-monitoring namespace ``` Fixes #2349 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Infrastructure & Monitoring** * Expanded Grafana dashboard availability across additional deployment environments for infrastructure monitoring. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 02ed1e0 + b8d48ad commit 2c6e0fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/system/monitoring/templates/dashboards.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
url: http://grafana-dashboards.cozy-grafana-operator.svc/{{ . }}.json
1515
{{- end }}
1616
{{- end }}
17-
{{- if eq .Release.Namespace "tenant-root" }}
17+
{{- if or (eq .Release.Namespace "tenant-root") (eq .Release.Namespace "cozy-monitoring") }}
1818
{{- range (split "\n" (.Files.Get "dashboards-infra.list")) }}
1919
{{- $parts := split "/" . }}
2020
{{- if eq (len $parts) 2 }}

0 commit comments

Comments
 (0)