Return the error when getting backup store in backup deletion controller (#4465)

Per discussion in
https://github.com/vmware-tanzu/velero/issues/4260#issuecomment-947721686
https://github.com/vmware-tanzu/velero/issues/4260#issuecomment-951347384

return the error to avoid a panic when downloading the backup tarball

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
Daniel Jiang
2021-12-21 05:38:13 +08:00
committed by GitHub
parent d627362abd
commit d7aa82d8ed
4 changed files with 39 additions and 5 deletions

View File

@@ -291,7 +291,7 @@ func (c *backupDeletionController) processRequest(req *velerov1api.DeleteBackupR
backupStore, err := c.backupStoreGetter.Get(location, pluginManager, log)
if err != nil {
errs = append(errs, err.Error())
return errors.Wrap(err, "error getting the backup store")
}
actions, err := pluginManager.GetDeleteItemActions()