Add way to specify namespaces

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
This commit is contained in:
Michel Hollands
2023-06-19 14:59:50 +01:00
parent e9eba237a1
commit 0f66cad545
4 changed files with 60 additions and 25 deletions

View File

@@ -0,0 +1,7 @@
{{- define "agent.namespaces" -}}
{{- $list := list }}
{{- range .Values.namespacesToMonitor }}
{{- $list = append $list (printf "\"%s\"" .) }}
{{- end }}
{{- join ", " $list }}
{{- end }}