mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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:
committed by
Kubernetes Prow Robot
parent
810cd65429
commit
98105e477e
@@ -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.
|
||||
|
||||
@@ -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 | `{}` |
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user