Skip to content

Commit 366786c

Browse files
committed
Add credential configuration for VSL
Signed-off-by: JenTing Hsiao <[email protected]>
1 parent 00baf7d commit 366786c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

charts/velero/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 1.11.1
33
kubeVersion: ">=1.16.0-0"
44
description: A Helm chart for velero
55
name: velero
6-
version: 5.0.1
6+
version: 5.0.2
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/volumesnapshotlocation.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ metadata:
1414
app.kubernetes.io/managed-by: {{ $.Release.Service }}
1515
helm.sh/chart: {{ include "velero.chart" $ }}
1616
spec:
17+
{{- if not (empty .credential) }}
18+
credential:
19+
{{- with .credential.name }}
20+
name: {{ . }}
21+
{{- end }}
22+
{{- with .credential.key }}
23+
key: {{ . }}
24+
{{- end }}
25+
{{- end }}
1726
provider: {{ .provider }}
1827
{{- with .config }}
1928
config:

charts/velero/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ configuration:
322322
- name:
323323
# provider is the name for the volume snapshot provider.
324324
provider:
325+
credential:
326+
# name of the secret used by this volumeSnapshotLocation.
327+
name:
328+
# name of key that contains the secret data to be used.
329+
key:
325330
# Additional provider-specific configuration. See link above
326331
# for details of required/optional fields for your provider.
327332
config: {}

0 commit comments

Comments
 (0)