Skip to content

Commit

Permalink
Merge branch 'main' into tpl-config-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke authored Dec 12, 2023
2 parents 92cf23d + cbd56ae commit 0a8b11c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions charts/velero/templates/upgrade-crds/upgrade-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a8b11c

Please sign in to comment.