[stable/velero] Optional extra volumes and volumeMounts (#18120)

* [stable/velero] Optional extra volumes and volumeMounts

For example to add CA certificates to the Velero deployment

Signed-off-by: Rick Haan <rickhaan94@gmail.com>

* Update Velero readme comment

Signed-off-by: Rick Haan <rickhaan94@gmail.com>

* Bump Velero chart version

Bump minor version, since this PR adds functionality in a backwards
compatible manner.

Signed-off-by: Rick Haan <rickhaan94@gmail.com>

* Fix version error

Patch version should go back to 0

Signed-off-by: Rick Haan <rickhaan94@gmail.com>
This commit is contained in:
Rick Haan
2019-10-20 02:23:36 -07:00
committed by Kubernetes Prow Robot
parent 53c7d2869d
commit 1869ecb496
4 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.1.0
description: A Helm chart for velero
name: velero
version: 2.1.8
version: 2.2.0
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
+2
View File
@@ -67,6 +67,8 @@ Parameter | Description | Default
`initContainers` | InitContainers and their specs to start with the deployment pod | `[]`
`tolerations` | List of node taints to tolerate | `[]`
`nodeSelector` | Node labels for pod assignment | `{}`
`extraVolumes` | Extra volumes for the Velero deployment | `[]`
`extraVolumeMounts` | Extra volumeMounts for the Velero deployment | `[]`
`configuration.backupStorageLocation.name` | The name of the cloud provider that will be used to actually store the backups (`aws`, `azure`, `gcp`) | ``
`configuration.backupStorageLocation.bucket` | The storage bucket where backups are to be uploaded | ``
`configuration.backupStorageLocation.config.region` | The cloud provider region (AWS only) | ``
+6
View File
@@ -79,6 +79,9 @@ spec:
- name: scratch
mountPath: /scratch
{{- end }}
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- end }}
env:
- name: VELERO_SCRATCH_DIR
value: /scratch
@@ -115,6 +118,9 @@ spec:
emptyDir: {}
- name: scratch
emptyDir: {}
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
+6
View File
@@ -33,6 +33,12 @@ tolerations: []
# Node selector to use for the Velero deployment. Optional.
nodeSelector: {}
# Extra volumes for the Velero deployment. Optional.
extraVolumes: []
# Extra volumeMounts for the Velero deployment. Optional.
extraVolumeMounts: []
# Settings for Velero's prometheus metrics. Disabled by default.
metrics:
enabled: false