[stable/grafana] Set resources for downloadDashboards initContainer (#21472)

Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
This commit is contained in:
Bruno Clermont
2020-03-30 04:59:54 -07:00
committed by GitHub
parent ccd21f5b25
commit 3a8edb04b9
4 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 5.0.9
version: 5.0.10
appVersion: 6.7.1
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
+1
View File
@@ -161,6 +161,7 @@ You have to add --force to your helm upgrade command as the labels of the chart
| `testFramework.tag` | `test-framework` image tag. | `v1.1.0` |
| `testFramework.securityContext` | `test-framework` securityContext | `{}` |
| `downloadDashboards.env` | Environment variables to be passed to the `download-dashboards` container | `{}` |
| `downloadDashboards.resources` | Resources of `download-dashboards` container | `{}` |
| `downloadDashboardsImage.repository` | Curl docker image repo | `curlimages/curl` |
| `downloadDashboardsImage.tag` | Curl docker image tag | `7.68.0` |
| `downloadDashboardsImage.pullPolicy` | Curl docker image pull policy | `IfNotPresent` |
+2
View File
@@ -38,6 +38,8 @@ initContainers:
imagePullPolicy: {{ .Values.downloadDashboardsImage.pullPolicy }}
command: ["/bin/sh"]
args: [ "-c", "mkdir -p /var/lib/grafana/dashboards/default && /bin/sh /etc/grafana/download_dashboards.sh" ]
resources:
{{ toYaml .Values.downloadDashboards.resources | indent 6 }}
env:
{{- range $key, $value := .Values.downloadDashboards.env }}
- name: "{{ $key }}"
+1
View File
@@ -94,6 +94,7 @@ downloadDashboardsImage:
downloadDashboards:
env: {}
resources: {}
## Pod Annotations
# podAnnotations: {}