[stable/velero] Restic optional extra volumes and volumeMounts (#18396)

* [stable/velero] Restic optional extra volumes and volumeMounts

For example to add CA certificates to the Velero deployment

Equal functionality as my last PR #18120. But this time it's for the
Restic daemonset.

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

* [stable/velero] Fix typo in README.md

Signed-off-by: Rick Haan <rickhaan94@gmail.com>
This commit is contained in:
Rick Haan
2019-10-28 10:14:42 -07:00
committed by Kubernetes Prow Robot
parent 722af9bc57
commit 51e77044dd
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.2.1
version: 2.3.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
@@ -104,6 +104,8 @@ Parameter | Description | Default
`restic.privileged` | Whether restic should run as a privileged pod. Only necessary in special cases (SELinux) | `false`
`restic.resources` | Restic DaemonSet resource requests and limits | `{}`
`restic.tolerations` | Restic DaemonSet tolerations | `[]`
`restic.extraVolumes` | Extra volumes for the Restic daemonset | `[]`
`restic.extraVolumeMounts` | Extra volumeMounts for the Restic daemonset | `[]`
`configMaps` | Velero ConfigMaps | `[]`
## How to
@@ -42,6 +42,9 @@ spec:
path: {{ .Values.restic.podVolumePath }}
- name: scratch
emptyDir: {}
{{- if .Values.restic.extraVolumes }}
{{- toYaml .Values.restic.extraVolumes | nindent 8 }}
{{- end }}
containers:
- name: velero
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@@ -61,6 +64,9 @@ spec:
mountPropagation: HostToContainer
- name: scratch
mountPath: /scratch
{{- if .Values.restic.extraVolumeMounts }}
{{- toYaml .Values.restic.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if and .Values.credentials.useSecret (eq $provider "azure") }}
envFrom:
- secretRef:
+6
View File
@@ -169,6 +169,12 @@ restic:
# Tolerations to use for the Restic daemonset. Optional.
tolerations: []
# Extra volumes for the Restic daemonset. Optional.
extraVolumes: []
# Extra volumeMounts for the Restic daemonset. Optional.
extraVolumeMounts: []
# Backup schedules to create.
# Eg:
# schedules: