Update velero
This commit is contained in:
@@ -86,3 +86,11 @@ For examples:
|
||||
{{- $minorVersion := .Capabilities.KubeVersion.Minor | regexFind "[0-9]+" -}}
|
||||
{{- printf "%s.%s" .Capabilities.KubeVersion.Major $minorVersion -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Calculate the checksum of the credentials secret.
|
||||
*/}}
|
||||
{{- define "chart.config-checksum" -}}
|
||||
{{- tpl (print .Values.credentials.secretContents .Values.credentials.extraEnvVars ) $ | sha256sum -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -40,7 +40,7 @@ spec:
|
||||
{{- if .Values.podLabels }}
|
||||
{{- toYaml .Values.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.podAnnotations .Values.metrics.enabled }}
|
||||
{{- if or .Values.podAnnotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
|
||||
annotations:
|
||||
{{- with .Values.podAnnotations }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -50,6 +50,9 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if and .Values.credentials.useSecret (not .Values.credentials.existingSecret) }}
|
||||
checksum/secret: {{ template "chart.config-checksum" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.image.imagePullSecrets }}
|
||||
@@ -147,6 +150,9 @@ spec:
|
||||
{{- with .terminatingResourceTimeout }}
|
||||
- --terminating-resource-timeout={{ . }}
|
||||
{{- end }}
|
||||
{{- with .defaultSnapshotMoveData }}
|
||||
- --default-snapshot-move-data={{ . }}
|
||||
{{- end }}
|
||||
### Global Flags
|
||||
{{- with .features }}
|
||||
- --features={{ . }}
|
||||
@@ -215,7 +221,7 @@ spec:
|
||||
{{- with .Values.configuration.extraEnvVars }}
|
||||
{{- range $key, $value := . }}
|
||||
- name: {{ default "none" $key }}
|
||||
value: {{ default "none" $value | quote }}
|
||||
value: {{ tpl (default "none" $value) $ | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.credentials.extraEnvVars }}
|
||||
|
||||
@@ -33,7 +33,7 @@ spec:
|
||||
{{- if .Values.podLabels }}
|
||||
{{- toYaml .Values.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.podAnnotations .Values.metrics.enabled }}
|
||||
{{- if or .Values.podAnnotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
|
||||
annotations:
|
||||
{{- with .Values.podAnnotations }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -43,6 +43,9 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if and .Values.credentials.useSecret (not .Values.credentials.existingSecret) }}
|
||||
checksum/secret: {{ template "chart.config-checksum" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.image.imagePullSecrets }}
|
||||
@@ -150,7 +153,7 @@ spec:
|
||||
{{- with .Values.configuration.extraEnvVars }}
|
||||
{{- range $key, $value := . }}
|
||||
- name: {{ default "none" $key }}
|
||||
value: {{ default "none" $value | quote }}
|
||||
value: {{ tpl (default "none" $value) $ | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.credentials.extraEnvVars }}
|
||||
@@ -191,7 +194,7 @@ spec:
|
||||
{{- with .Values.nodeAgent.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.nodeAgent.dnsConfig }}
|
||||
dnsConfig:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
||||
@@ -16,9 +16,9 @@ metadata:
|
||||
type: Opaque
|
||||
data:
|
||||
{{- range $key, $value := .Values.credentials.secretContents }}
|
||||
{{ $key }}: {{ $value | b64enc | quote }}
|
||||
{{ $key }}: {{ tpl $value $ | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.credentials.extraEnvVars }}
|
||||
{{ $key }}: {{ $value | b64enc | quote }}
|
||||
{{ $key }}: {{ tpl $value $ | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user