[stable/grafana] Add extraContainerVolumes (#22264)

* [stable/grafana] adding extraContainerVolumes variable with empty list as default.

Signed-off-by: Chris Downs <downs@mythical.games>

* [stable/grafana] if there are volumes defined by extraContainerVolumes, add them to the volumes section of the pod spec

Signed-off-by: Chris Downs <downs@mythical.games>

* [stable/grafana] documenting new extraContainerVolumes variable in README

Signed-off-by: Chris Downs <downs@mythical.games>

* [stable/grafana] bumping chart version

Signed-off-by: Chris Downs <downs@mythical.games>
This commit is contained in:
Chris Downs
2020-05-06 22:05:08 -07:00
committed by GitHub
parent a2f94bb38c
commit 740135ed99
4 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 5.0.23
version: 5.0.24
appVersion: 6.7.3
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
+1
View File
@@ -80,6 +80,7 @@ You have to add --force to your helm upgrade command as the labels of the chart
| `affinity` | Affinity settings for pod assignment | `{}` |
| `extraInitContainers` | Init containers to add to the grafana pod | `{}` |
| `extraContainers` | Sidecar containers to add to the grafana pod | `{}` |
| `extraContainerVolumes` | Volumes that can be mounted in sidecar containers | `[]` |
| `schedulerName` | Name of the k8s scheduler (other than default) | `nil` |
| `persistence.enabled` | Use persistent volume to store data | `false` |
| `persistence.type` | Type of persistence (`pvc` or `statefulset`) | `pvc` |
+3
View File
@@ -366,4 +366,7 @@ volumes:
- name: {{ .name }}
emptyDir: {}
{{- end -}}
{{- if .Values.extraContainerVolumes }}
{{ toYaml .Values.extraContainerVolumes | indent 2 }}
{{- end }}
{{- end }}
+8
View File
@@ -191,6 +191,14 @@ extraContainers: |
# - name: proxy-web
# containerPort: 4181
## Volumes that can be used in init containers that will not be mounted to deployment pods
extraContainerVolumes: []
# - name: volume-from-secret
# secret:
# secretName: secret-to-mount
# - name: empty-dir-volume
# emptyDir: {}
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##