diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index db25de04..e7de334e 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.12.2 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 5.1.6 +version: 5.1.7 home: https://github.com/vmware-tanzu/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: diff --git a/charts/velero/templates/upgrade-crds/upgrade-crds.yaml b/charts/velero/templates/upgrade-crds/upgrade-crds.yaml index 44dd2c44..169e0552 100644 --- a/charts/velero/templates/upgrade-crds/upgrade-crds.yaml +++ b/charts/velero/templates/upgrade-crds/upgrade-crds.yaml @@ -86,9 +86,24 @@ spec: volumeMounts: - mountPath: /tmp name: crds + {{- if (.Values.upgradeCRDsJob).extraVolumeMounts }} + {{- toYaml .Values.upgradeCRDsJob.extraVolumeMounts | nindent 12 }} + {{- end }} + {{- if (.Values.upgradeCRDsJob).extraEnvVars }} + env: + {{- with .Values.upgradeCRDsJob.extraEnvVars }} + {{- range $key, $value := . }} + - name: {{ default "none" $key }} + value: {{ default "none" $value | quote }} + {{- end }} + {{- end }} + {{- end }} volumes: - name: crds emptyDir: {} + {{- if (.Values.upgradeCRDsJob).extraVolumes }} + {{- toYaml .Values.upgradeCRDsJob.extraVolumes | nindent 8 }} + {{- end }} restartPolicy: OnFailure {{- with $podSecurityContext }} securityContext: diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index bc8c3c48..2337daa9 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -89,6 +89,14 @@ upgradeJobResources: {} # limits: # cpu: 100m # memory: 256Mi +upgradeCRDsJob: + # Extra volumes for the Upgrade CRDs Job. Optional. + extraVolumes: [] + # Extra volumeMounts for the Upgrade CRDs Job. Optional. + extraVolumeMounts: [] + # Extra key/value pairs to be used as environment variables. Optional. + extraEnvVars: {} + # Configure the dnsPolicy of the Velero deployment # See: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy