Skip to content

Commit

Permalink
Fix statefulset to treat provider config env vars as optional (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-s-rao authored Mar 21, 2024
1 parent 4eb424e commit 53356a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chart/etcd-backup-restore/templates/etcd-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,15 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-etcd-backup
key: "emulatorEnabled"
optional: true
{{- end }}
{{- if .Values.backup.abs.storageAPIEndpoint }}
- name: "AZURE_STORAGE_API_ENDPOINT"
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-etcd-backup
key: "storageAPIEndpoint"
optional: true
{{- end }}
{{- else if eq .Values.backup.storageProvider "GCS" }}
- name: "GOOGLE_APPLICATION_CREDENTIALS"
Expand All @@ -214,6 +216,7 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-etcd-backup
key: "storageAPIEndpoint"
optional: true
{{- end }}
{{- else if eq .Values.backup.storageProvider "Swift" }}
- name: "OS_AUTH_URL"
Expand Down Expand Up @@ -284,13 +287,15 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-etcd-backup
key: "disableSsl"
optional: true
{{- end }}
{{- if .Values.backup.ecs.insecureSkipVerify }}
- name: "ECS_INSECURE_SKIP_VERIFY"
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-etcd-backup
key: "insecureSkipVerify"
optional: true
{{- end }}
{{- end }}
volumeMounts:
Expand Down

0 comments on commit 53356a0

Please sign in to comment.