diff --git a/grafana/templates/deployment.yaml b/grafana/templates/deployment.yaml index a468f84..5fc018a 100644 --- a/grafana/templates/deployment.yaml +++ b/grafana/templates/deployment.yaml @@ -129,6 +129,10 @@ spec: value: "{{ .Values.grafana.datasources.watcher.label }}" - name: FOLDER value: "{{ .Values.grafana.datasources.watcher.folder }}" + {{- if .Values.grafana.datasources.watcher.namespace }} + - name: NAMESPACE + value: "{{ .Values.grafana.datasources.watcher.namespace }}" + {{- end }} {{- if .Values.grafana.deployment.configmapWatcher.resources }} resources: {{- toYaml .Values.grafana.deployment.configmapWatcher.resources | trim | nindent 10 -}} @@ -146,6 +150,10 @@ spec: value: "{{ .Values.grafana.dashboards.watcher.label }}" - name: FOLDER value: "{{ .Values.grafana.dashboards.watcher.folder }}" + {{- if .Values.grafana.dashboards.watcher.namespace }} + - name: NAMESPACE + value: "{{ .Values.grafana.dashboards.watcher.namespace }}" + {{- end }} {{- if .Values.grafana.deployment.configmapWatcher.resources }} resources: {{- toYaml .Values.grafana.deployment.configmapWatcher.resources | trim | nindent 10 -}} diff --git a/grafana/values.yaml b/grafana/values.yaml index 5ba8b2c..10a5f19 100644 --- a/grafana/values.yaml +++ b/grafana/values.yaml @@ -109,7 +109,9 @@ grafana: watcher: folder: /tmp/datasources label: grafana.datasource.test + namespace: dashboards: watcher: folder: /tmp/dashboards - label: grafana.dashboard.test \ No newline at end of file + label: grafana.dashboard.test + namespace: \ No newline at end of file