diff --git a/controllers/barbicanapi_controller.go b/controllers/barbicanapi_controller.go index cf9a1c5..89db420 100644 --- a/controllers/barbicanapi_controller.go +++ b/controllers/barbicanapi_controller.go @@ -906,7 +906,8 @@ func (r *BarbicanAPIReconciler) 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 { diff --git a/controllers/barbicankeystonelistener_controller.go b/controllers/barbicankeystonelistener_controller.go index 6d0f7c9..b2dee50 100644 --- a/controllers/barbicankeystonelistener_controller.go +++ b/controllers/barbicankeystonelistener_controller.go @@ -650,7 +650,8 @@ func (r *BarbicanKeystoneListenerReconciler) findObjectsForSrc(ctx context.Conte } 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/barbicanworker_controller.go b/controllers/barbicanworker_controller.go index e5cb87e..77f6274 100644 --- a/controllers/barbicanworker_controller.go +++ b/controllers/barbicanworker_controller.go @@ -611,7 +611,8 @@ func (r *BarbicanWorkerReconciler) findObjectsForSrc(ctx context.Context, src cl } 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 {