Update velero

This commit is contained in:
2024-02-09 21:56:31 +08:00
parent 7c1a5f6311
commit ac0fdfa8ce
63 changed files with 6115 additions and 529 deletions
@@ -15,6 +15,9 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "velero.chart" . }}
{{- with .Values.kubectl.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
backoffLimit: 3
template:
@@ -86,9 +89,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: