diff --git a/charts/velero/templates/deployment.yaml b/charts/velero/templates/deployment.yaml index 6bae9445d..23e5dd92c 100644 --- a/charts/velero/templates/deployment.yaml +++ b/charts/velero/templates/deployment.yaml @@ -110,16 +110,16 @@ spec: {{- if .Values.credentials.useSecret }} {{- if eq $provider "aws" }} - name: AWS_SHARED_CREDENTIALS_FILE - value: /credentials/cloud + value: /credentials/{{ .Values.credentials.existingSecretKey }} {{- else if eq $provider "gcp"}} - name: GOOGLE_APPLICATION_CREDENTIALS - value: /credentials/cloud + value: /credentials/{{ .Values.credentials.existingSecretKey }} {{- else if eq $provider "azure" }} - name: AZURE_CREDENTIALS_FILE - value: /credentials/cloud + value: /credentials/{{ .Values.credentials.existingSecretKey }} {{- else if eq $provider "alibabacloud" }} - name: ALIBABA_CLOUD_CREDENTIALS_FILE - value: /credentials/cloud + value: /credentials/{{ .Values.credentials.existingSecretKey }} {{- end }} {{- end }} {{- with .Values.configuration.extraEnvVars }} diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index e716c7e4e..4ad39083d 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -200,6 +200,7 @@ credentials: # Name of a pre-existing secret (if any) in the Velero namespace # that should be used to get IAM account credentials. Optional. existingSecret: + existingSecretKey: cloud # Data to be stored in the Velero secret, if `useSecret` is # true and `existingSecret` is empty. This should be the contents # of your IAM credentials file.