File tree 6 files changed +23
-9
lines changed
6 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ appVersion: 1.12.2
3
3
kubeVersion : " >=1.16.0-0"
4
4
description : A Helm chart for velero
5
5
name : velero
6
- version : 5.1.7
6
+ version : 5.2.0
7
7
home : https://github.com/vmware-tanzu/velero
8
8
icon : https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
9
9
sources :
Original file line number Diff line number Diff line change @@ -86,3 +86,11 @@ For examples:
86
86
{ {- $minorVersion := .Capabilities.KubeVersion.Minor | regexFind " [0-9]+" -} }
87
87
{ {- printf " %s.%s" .Capabilities.KubeVersion.Major $minorVersion -} }
88
88
{ {- end -} }
89
+
90
+
91
+ { {/*
92
+ Calculate the checksum of the credentials secret.
93
+ */} }
94
+ { {- define " chart.config-checksum" -} }
95
+ { {- tpl (print .Values.credentials.secretContents .Values.credentials.extraEnvVars ) $ | sha256sum -} }
96
+ { {- end -} }
Original file line number Diff line number Diff line change 40
40
{{- if .Values.podLabels }}
41
41
{{- toYaml .Values.podLabels | nindent 8 }}
42
42
{{- end }}
43
- {{- if or .Values.podAnnotations .Values.metrics.enabled }}
43
+ {{- if or .Values.podAnnotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
44
44
annotations :
45
45
{{- with .Values.podAnnotations }}
46
46
{{- toYaml . | nindent 8 }}
50
50
{{- toYaml . | nindent 8 }}
51
51
{{- end }}
52
52
{{- end }}
53
+ {{- if and .Values.credentials.useSecret (not .Values.credentials.existingSecret) }}
54
+ checksum/secret : {{ template "chart.config-checksum" . }}
55
+ {{- end }}
53
56
{{- end }}
54
57
spec :
55
58
{{- if .Values.image.imagePullSecrets }}
@@ -218,7 +221,7 @@ spec:
218
221
{{- with .Values.configuration.extraEnvVars }}
219
222
{{- range $key, $value := . }}
220
223
- name : {{ default "none" $key }}
221
- value : {{ default "none" $value | quote }}
224
+ value : {{ tpl ( default "none" $value) $ | quote }}
222
225
{{- end }}
223
226
{{- end }}
224
227
{{- with .Values.credentials.extraEnvVars }}
Original file line number Diff line number Diff line change 33
33
{{- if .Values.podLabels }}
34
34
{{- toYaml .Values.podLabels | nindent 8 }}
35
35
{{- end }}
36
- {{- if or .Values.podAnnotations .Values.metrics.enabled }}
36
+ {{- if or .Values.podAnnotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
37
37
annotations :
38
38
{{- with .Values.podAnnotations }}
39
39
{{- toYaml . | nindent 8 }}
43
43
{{- toYaml . | nindent 8 }}
44
44
{{- end }}
45
45
{{- end }}
46
+ {{- if and .Values.credentials.useSecret (not .Values.credentials.existingSecret) }}
47
+ checksum/secret : {{ template "chart.config-checksum" . }}
48
+ {{- end }}
46
49
{{- end }}
47
50
spec :
48
51
{{- if .Values.image.imagePullSecrets }}
@@ -150,7 +153,7 @@ spec:
150
153
{{- with .Values.configuration.extraEnvVars }}
151
154
{{- range $key, $value := . }}
152
155
- name : {{ default "none" $key }}
153
- value : {{ default "none" $value | quote }}
156
+ value : {{ tpl ( default "none" $value) $ | quote }}
154
157
{{- end }}
155
158
{{- end }}
156
159
{{- with .Values.credentials.extraEnvVars }}
@@ -191,7 +194,7 @@ spec:
191
194
{{- with .Values.nodeAgent.affinity }}
192
195
affinity :
193
196
{{- toYaml . | nindent 8 }}
194
- {{- end }}
197
+ {{- end }}
195
198
{{- with .Values.nodeAgent.dnsConfig }}
196
199
dnsConfig :
197
200
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ metadata:
16
16
type : Opaque
17
17
data :
18
18
{{- range $key, $value := .Values.credentials.secretContents }}
19
- {{ $key }}: {{ $value | b64enc | quote }}
19
+ {{ $key }}: {{ tpl $value $ | b64enc | quote }}
20
20
{{- end }}
21
21
{{- range $key, $value := .Values.credentials.extraEnvVars }}
22
- {{ $key }}: {{ $value | b64enc | quote }}
22
+ {{ $key }}: {{ tpl $value $ | b64enc | quote }}
23
23
{{- end }}
24
24
{{- end -}}
Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ serviceAccount:
479
479
credentials :
480
480
# Whether a secret should be used. Set to false if, for examples:
481
481
# - using kube2iam or kiam to provide AWS IAM credentials instead of providing the key file. (AWS only)
482
- # - using workload identity instead of providing the key file. (GCP only)
482
+ # - using workload identity instead of providing the key file. (Azure/ GCP only)
483
483
useSecret : true
484
484
# Name of the secret to create if `useSecret` is true and `existingSecret` is empty
485
485
name :
You can’t perform that action at this time.
0 commit comments