Skip to content

Commit

Permalink
Merge pull request #4 from stakater-charts/add-namespace-support
Browse files Browse the repository at this point in the history
Add namespace support to new watchers
  • Loading branch information
waseem-h authored Jan 14, 2019
2 parents 852d053 + 78e2138 commit db15b07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions grafana/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand All @@ -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 -}}
Expand Down
4 changes: 3 additions & 1 deletion grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ grafana:
watcher:
folder: /tmp/datasources
label: grafana.datasource.test
namespace:
dashboards:
watcher:
folder: /tmp/dashboards
label: grafana.dashboard.test
label: grafana.dashboard.test
namespace:

0 comments on commit db15b07

Please sign in to comment.