Skip to content

Commit 4c1fa6f

Browse files
authored
Merge pull request #67 from jenting/fix-azure
Fix azure
2 parents 097bd8c + 437d23d commit 4c1fa6f

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

charts/velero/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 1.3.0
33
description: A Helm chart for velero
44
name: velero
5-
version: 2.9.0
5+
version: 2.9.1
66
home: https://github.com/vmware-tanzu/velero
77
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
88
sources:

charts/velero/templates/deployment.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ spec:
7171
- --log-format={{ . }}
7272
{{- end }}
7373
{{- end }}
74-
{{- if eq $provider "azure" }}
75-
envFrom:
76-
- secretRef:
77-
name: {{ include "velero.secretName" . }}
78-
{{- end }}
7974
{{- with .Values.resources }}
8075
resources:
8176
{{- toYaml . | nindent 12 }}

charts/velero/templates/restic-daemonset.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ spec:
7070
{{- if .Values.restic.extraVolumeMounts }}
7171
{{- toYaml .Values.restic.extraVolumeMounts | nindent 12 }}
7272
{{- end }}
73-
{{- if and .Values.credentials.useSecret (eq $provider "azure") }}
74-
envFrom:
75-
- secretRef:
76-
name: {{ include "velero.secretName" . }}
77-
{{- end }}
7873
env:
7974
{{- with .Values.configuration.extraEnvVars }}
8075
{{- range $key, $value := . }}
@@ -92,11 +87,13 @@ spec:
9287
fieldPath: spec.nodeName
9388
- name: VELERO_SCRATCH_DIR
9489
value: /scratch
95-
{{- if and .Values.credentials.useSecret (or (eq $provider "aws") (eq $provider "gcp") (eq $provider "alibabacloud")) }}
90+
{{- if and .Values.credentials.useSecret (or (eq $provider "aws") (eq $provider "gcp") (eq $provider "azure") (eq $provider "alibabacloud")) }}
9691
{{- if eq $provider "aws" }}
9792
- name: AWS_SHARED_CREDENTIALS_FILE
9893
{{- else if eq $provider "gcp" }}
9994
- name: GOOGLE_APPLICATION_CREDENTIALS
95+
{{- else if eq $provider "azure" }}
96+
- name: AZURE_CREDENTIALS_FILE
10097
{{- else }}
10198
- name: ALIBABA_CLOUD_CREDENTIALS_FILE
10299
{{- end }}

0 commit comments

Comments
 (0)