Skip to content

Commit 0290724

Browse files
committed
renaming secret file to align with velero install
Signed-off-by: W. Kavanaugh Latiolais <[email protected]>
1 parent 5d05683 commit 0290724

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

charts/velero/templates/deployment.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ spec:
107107
{{- if .Values.credentials.useSecret }}
108108
{{- if eq $provider "aws" }}
109109
- name: AWS_SHARED_CREDENTIALS_FILE
110-
value: /credentials/{{ .Values.credentials.existingSecretKey }}
110+
value: /credentials/cloud
111111
{{- else if eq $provider "gcp"}}
112112
- name: GOOGLE_APPLICATION_CREDENTIALS
113-
value: /credentials/{{ .Values.credentials.existingSecretKey }}
113+
value: /credentials/cloud
114114
{{- else if eq $provider "azure" }}
115115
- name: AZURE_CREDENTIALS_FILE
116-
value: /credentials/{{ .Values.credentials.existingSecretKey }}
116+
value: /credentials/cloud
117117
{{- else if eq $provider "alibabacloud" }}
118118
- name: ALIBABA_CLOUD_CREDENTIALS_FILE
119-
value: /credentials/{{ .Values.credentials.existingSecretKey }}
119+
value: /credentials/cloud
120120
{{- end }}
121121
{{- end }}
122122
{{- with .Values.configuration.extraEnvVars }}
@@ -152,6 +152,9 @@ spec:
152152
- name: cloud-credentials
153153
secret:
154154
secretName: {{ include "velero.secretName" . }}
155+
items:
156+
- key: {{ .Values.credentials.existingSecretKey }}
157+
path: cloud
155158
{{- end }}
156159
- name: plugins
157160
emptyDir: {}

0 commit comments

Comments
 (0)