add 'file' dashboard type logic to grafana deployment volume mounts. fixes #11826. (#11969)

Signed-off-by: Ken Talley <k.talley@gmail.com>
This commit is contained in:
kwt
2019-03-06 23:04:58 -08:00
committed by Kubernetes Prow Robot
parent eb10f2297d
commit 7763584858
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 2.2.1
version: 2.2.2
appVersion: 6.0.0
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
+1 -1
View File
@@ -152,7 +152,7 @@ spec:
{{- if .Values.dashboards }}
{{- range $provider, $dashboards := .Values.dashboards }}
{{- range $key, $value := $dashboards }}
{{- if hasKey $value "json" }}
{{- if (or (hasKey $value "json") (hasKey $value "file")) }}
- name: dashboards-{{ $provider }}
mountPath: "/var/lib/grafana/dashboards/{{ $provider }}/{{ $key }}.json"
subPath: "{{ $key }}.json"