mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 13:05:17 +00:00
Return early from a BSL controller (#2709)
Signed-off-by: Carlisia <carlisia@vmware.com>
This commit is contained in:
@@ -47,6 +47,7 @@ func (r *BackupStorageLocationReconciler) Reconcile(req ctrl.Request) (ctrl.Resu
|
||||
locationList, err := velero.ListBackupStorageLocations(r.StorageLocation.Client, r.StorageLocation.Ctx, req.Namespace)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("No backup storage locations found, at least one is required")
|
||||
return ctrl.Result{Requeue: true}, err
|
||||
}
|
||||
|
||||
var defaultFound bool
|
||||
|
||||
Reference in New Issue
Block a user