diff --git a/controllers/manilaapi_controller.go b/controllers/manilaapi_controller.go index 3c12b1a9..292009e5 100644 --- a/controllers/manilaapi_controller.go +++ b/controllers/manilaapi_controller.go @@ -340,7 +340,8 @@ func (r *ManilaAPIReconciler) findObjectsForSrc(ctx context.Context, src client. } err := r.List(ctx, crList, listOps) if err != nil { - return []reconcile.Request{} + l.Error(err, fmt.Sprintf("listing %s for field: %s - %s", crList.GroupVersionKind().Kind, field, src.GetNamespace())) + return requests } for _, item := range crList.Items { diff --git a/controllers/manilascheduler_controller.go b/controllers/manilascheduler_controller.go index aea7fc2f..31e09f93 100644 --- a/controllers/manilascheduler_controller.go +++ b/controllers/manilascheduler_controller.go @@ -284,7 +284,8 @@ func (r *ManilaSchedulerReconciler) findObjectsForSrc(ctx context.Context, src c } err := r.List(ctx, crList, listOps) if err != nil { - return []reconcile.Request{} + l.Error(err, fmt.Sprintf("listing %s for field: %s - %s", crList.GroupVersionKind().Kind, field, src.GetNamespace())) + return requests } for _, item := range crList.Items { diff --git a/controllers/manilashare_controller.go b/controllers/manilashare_controller.go index 5d7de08e..aa22b5c8 100644 --- a/controllers/manilashare_controller.go +++ b/controllers/manilashare_controller.go @@ -284,7 +284,8 @@ func (r *ManilaShareReconciler) findObjectsForSrc(ctx context.Context, src clien } err := r.List(ctx, crList, listOps) if err != nil { - return []reconcile.Request{} + l.Error(err, fmt.Sprintf("listing %s for field: %s - %s", crList.GroupVersionKind().Kind, field, src.GetNamespace())) + return requests } for _, item := range crList.Items {