diff --git a/stable/velero/Chart.yaml b/stable/velero/Chart.yaml index 1c59fc3265..2d9c8be558 100644 --- a/stable/velero/Chart.yaml +++ b/stable/velero/Chart.yaml @@ -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: diff --git a/stable/velero/README.md b/stable/velero/README.md index 394dea5c4d..48c73a404e 100644 --- a/stable/velero/README.md +++ b/stable/velero/README.md @@ -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 diff --git a/stable/velero/templates/restic-daemonset.yaml b/stable/velero/templates/restic-daemonset.yaml index 2bda8ecb48..4b36f63ff9 100644 --- a/stable/velero/templates/restic-daemonset.yaml +++ b/stable/velero/templates/restic-daemonset.yaml @@ -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: diff --git a/stable/velero/values.yaml b/stable/velero/values.yaml index 281792c9bb..282a799729 100644 --- a/stable/velero/values.yaml +++ b/stable/velero/values.yaml @@ -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: