Skip to content

Commit cbd56ae

Browse files
authored
Merge pull request #528 from cbuto/feat/upgrade-crds-extras
[velero] feat: Add additional templating options for Velero upgrade CRDs job
2 parents 5702849 + 8b4510f commit cbd56ae

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

charts/velero/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 1.12.2
33
kubeVersion: ">=1.16.0-0"
44
description: A Helm chart for velero
55
name: velero
6-
version: 5.1.6
6+
version: 5.1.7
77
home: https://github.com/vmware-tanzu/velero
88
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
99
sources:

charts/velero/templates/upgrade-crds/upgrade-crds.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,24 @@ spec:
8686
volumeMounts:
8787
- mountPath: /tmp
8888
name: crds
89+
{{- if (.Values.upgradeCRDsJob).extraVolumeMounts }}
90+
{{- toYaml .Values.upgradeCRDsJob.extraVolumeMounts | nindent 12 }}
91+
{{- end }}
92+
{{- if (.Values.upgradeCRDsJob).extraEnvVars }}
93+
env:
94+
{{- with .Values.upgradeCRDsJob.extraEnvVars }}
95+
{{- range $key, $value := . }}
96+
- name: {{ default "none" $key }}
97+
value: {{ default "none" $value | quote }}
98+
{{- end }}
99+
{{- end }}
100+
{{- end }}
89101
volumes:
90102
- name: crds
91103
emptyDir: {}
104+
{{- if (.Values.upgradeCRDsJob).extraVolumes }}
105+
{{- toYaml .Values.upgradeCRDsJob.extraVolumes | nindent 8 }}
106+
{{- end }}
92107
restartPolicy: OnFailure
93108
{{- with $podSecurityContext }}
94109
securityContext:

charts/velero/values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ upgradeJobResources: {}
8989
# limits:
9090
# cpu: 100m
9191
# memory: 256Mi
92+
upgradeCRDsJob:
93+
# Extra volumes for the Upgrade CRDs Job. Optional.
94+
extraVolumes: []
95+
# Extra volumeMounts for the Upgrade CRDs Job. Optional.
96+
extraVolumeMounts: []
97+
# Extra key/value pairs to be used as environment variables. Optional.
98+
extraEnvVars: {}
99+
92100

93101
# Configure the dnsPolicy of the Velero deployment
94102
# See: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy

0 commit comments

Comments
 (0)