Skip to content

Commit

Permalink
[stable/grafana] Add extraContainerVolumes (helm#22264)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
chris-downs authored and Ian Levesque committed Jul 13, 2020
1 parent e054d7e commit 4a61752
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/grafana/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions stable/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
3 changes: 3 additions & 0 deletions stable/grafana/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,7 @@ volumes:
- name: {{ .name }}
emptyDir: {}
{{- end -}}
{{- if .Values.extraContainerVolumes }}
{{ toYaml .Values.extraContainerVolumes | indent 2 }}
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions stable/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
##
Expand Down

0 comments on commit 4a61752

Please sign in to comment.