[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:
parent
ec480b0617
commit
3b2d6a6325
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue