diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index 0d513f80..e6932002 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.11.1 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 5.0.1 +version: 5.0.2 home: https://github.com/vmware-tanzu/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: diff --git a/charts/velero/templates/volumesnapshotlocation.yaml b/charts/velero/templates/volumesnapshotlocation.yaml index e8f31d3c..a28fd4aa 100644 --- a/charts/velero/templates/volumesnapshotlocation.yaml +++ b/charts/velero/templates/volumesnapshotlocation.yaml @@ -14,6 +14,15 @@ metadata: app.kubernetes.io/managed-by: {{ $.Release.Service }} helm.sh/chart: {{ include "velero.chart" $ }} spec: + {{- if not (empty .credential) }} + credential: + {{- with .credential.name }} + name: {{ . }} + {{- end }} + {{- with .credential.key }} + key: {{ . }} + {{- end }} + {{- end }} provider: {{ .provider }} {{- with .config }} config: diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index 75e2d4a6..463290d3 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -322,6 +322,11 @@ configuration: - name: # provider is the name for the volume snapshot provider. provider: + credential: + # name of the secret used by this volumeSnapshotLocation. + name: + # name of key that contains the secret data to be used. + key: # Additional provider-specific configuration. See link above # for details of required/optional fields for your provider. config: {}