Return early from a BSL controller (#2709)

Signed-off-by: Carlisia <carlisia@vmware.com>
pull/2716/head
Carlisia Campos 2020-07-14 15:09:11 -07:00 committed by GitHub
parent 3239b3e9d5
commit 13e1eeabfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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