Skip to content

Commit

Permalink
fix(base-cluster/backup): fix non-working default configuration (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau authored Jun 12, 2023
1 parent 9a0926c commit 438416d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions charts/base-cluster/templates/backup/velero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
type: RuntimeDefault
priorityClassName: system-cluster-critical
deployNodeAgent: true # enable FSB
{{- if .Values.backup.backupStorageLocations }}
configuration:
{{- if .Values.backup.backupStorageLocations }}
backupStorageLocation: {{- range $name, $spec := .Values.backup.backupStorageLocations }}
{{- $providerName := include "base-cluster.backup.getProviderName" $spec.provider }}
- name: {{ $name | quote }}
Expand All @@ -67,7 +67,10 @@ spec:
key: {{ get $existingSecret "key" | default (printf "%s-%s" $providerName $name) }}
{{- end }}
{{- end }}
{{- end }}
{{- else }}
backupStorageLocation: []
{{- end }}
volumeSnapshotLocation: []
metrics:
serviceMonitor:
additionalLabels: {{- .Values.monitoring.labels | toYaml | nindent 10 }}
Expand Down

0 comments on commit 438416d

Please sign in to comment.