mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user