Skip to content

Commit

Permalink
Add namespace support to new watchers
Browse files Browse the repository at this point in the history
  • Loading branch information
waseem-h committed Jan 14, 2019
1 parent 852d053 commit fafe7ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
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
8 changes: 5 additions & 3 deletions grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ grafana:
tag: "0.0.6"
pullPolicy:
datasources:
enabled: false
enabled: true
dashboards:
enabled: false
enabled: true

# resources:
# requests:
Expand Down 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 fafe7ab

Please sign in to comment.