diff --git a/stable/grafana/Chart.yaml b/stable/grafana/Chart.yaml index e0cf60ae9a..79eedd43c6 100755 --- a/stable/grafana/Chart.yaml +++ b/stable/grafana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: grafana -version: 3.7.3 +version: 3.8.0 appVersion: 6.2.5 kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. diff --git a/stable/grafana/README.md b/stable/grafana/README.md index 8ea290953d..f6738a0720 100644 --- a/stable/grafana/README.md +++ b/stable/grafana/README.md @@ -123,7 +123,8 @@ The command removes all the Kubernetes components associated with the chart and | `command` | Define command to be executed by grafana container at startup | `nil` | | `testFramework.image` | `test-framework` image repository. | `dduportal/bats` | | `testFramework.tag` | `test-framework` image tag. | `0.4.0` | -| `testFramework.securityContext` | `test-framework securityContext | `{}` | +| `testFramework.securityContext` | `test-framework` securityContext | `{}` | +| `downloadDashboards.env` | Environment variables to be passed to the `download-dashboards` container | `{}` | ### Example of extraVolumeMounts diff --git a/stable/grafana/templates/deployment.yaml b/stable/grafana/templates/deployment.yaml index 4cad040ea8..40100eba74 100644 --- a/stable/grafana/templates/deployment.yaml +++ b/stable/grafana/templates/deployment.yaml @@ -77,6 +77,11 @@ spec: imagePullPolicy: {{ .Values.downloadDashboardsImage.pullPolicy }} command: ["/bin/sh"] args: [ "-c", "mkdir -p /var/lib/grafana/dashboards/default && /bin/sh /etc/grafana/download_dashboards.sh" ] + env: +{{- range $key, $value := .Values.downloadDashboards.env }} + - name: "{{ $key }}" + value: "{{ $value }}" +{{- end }} volumeMounts: - name: config mountPath: "/etc/grafana/download_dashboards.sh" diff --git a/stable/grafana/values.yaml b/stable/grafana/values.yaml index ea1757e652..9ea8c97d2e 100644 --- a/stable/grafana/values.yaml +++ b/stable/grafana/values.yaml @@ -75,6 +75,9 @@ downloadDashboardsImage: tag: latest pullPolicy: IfNotPresent +downloadDashboards: + env: {} + ## Pod Annotations # podAnnotations: {}