velero: velero server will crash when there is no bsl named `default`
What steps did you take and what happened:
Run velero server with no bsl, then the server will crash with an error: An error occurred: backupstoragelocations.velero.io "default" not found .
What did you expect to happen:
velero server can run with no bsl.
The following information will help us better understand what’s going on:
refer code in setDefaultBackupLocation: https://github.com/vmware-tanzu/velero/blob/1034d6aee0b32b6ec0dbe4203902cd1d465ec950/pkg/cmd/server/server.go#L469
Anything else you would like to add:
Environment:
in branch main and release-1.13
Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project’s top voted issues listed here.
Use the “reaction smiley face” up to the right of this comment to vote.
- 👍 for “I would like to see this bug fixed as soon as possible”
- 👎 for “There are more important bugs to focus on right now”
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 19
- Comments: 18 (11 by maintainers)
Commits related to this issue
- downgrade because of https://github.com/vmware-tanzu/velero/issues/7359 — committed to tuxpeople/k8s-homelab by tuxpeople 3 years ago
@mateeyow I’ve fixed it, and it will be released in V1.13.1
The fix has been merged, and it will released in v1.13.1. If having any other related problem please re-open it