Skip to content

Commit

Permalink
Fixes #88 - ExistingSecret
Browse files Browse the repository at this point in the history
Signed-off-by: W. Kavanaugh Latiolais <[email protected]>
  • Loading branch information
kav committed Aug 6, 2020
1 parent 1dba1f5 commit 8be793d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/velero/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8be793d

Please sign in to comment.