grafana will now tpl datasources (#10603)

* grafana will now tpl datasources

Signed-off-by: James Batt <getjamesbatt@gmail.com>

* updated docs

Signed-off-by: James Batt <getjamesbatt@gmail.com>

* version bump

Signed-off-by: James Batt <getjamesbatt@gmail.com>
This commit is contained in:
PLACE
2019-01-16 14:53:37 -08:00
committed by Kubernetes Prow Robot
parent 810cd65429
commit 98105e477e
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 1.25.0
version: 1.25.1
appVersion: 5.4.3
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
+1 -1
View File
@@ -66,7 +66,7 @@ The command removes all the Kubernetes components associated with the chart and
| `extraVolumeMounts` | Additional grafana server volume mounts | `[]` |
| `extraConfigmapMounts` | Additional grafana server configMap volume mounts | `[]` |
| `plugins` | Plugins to be loaded along with Grafana | `[]` |
| `datasources` | Configure grafana datasources | `{}` |
| `datasources` | Configure grafana datasources (passed through tpl) | `{}` |
| `dashboardProviders` | Configure grafana dashboard providers | `{}` |
| `dashboards` | Dashboards to import | `{}` |
| `dashboardsConfigMaps` | ConfigMaps reference that contains dashboards | `{}` |
+2 -1
View File
@@ -20,9 +20,10 @@ data:
{{- end }}
{{- if .Values.datasources }}
{{ $root := . }}
{{- range $key, $value := .Values.datasources }}
{{ $key }}: |
{{ toYaml $value | indent 4 }}
{{ tpl (toYaml $value | indent 4) $root }}
{{- end -}}
{{- end -}}