diff --git a/controllers/swiftproxy_controller.go b/controllers/swiftproxy_controller.go index e4b81eb..c4510c4 100644 --- a/controllers/swiftproxy_controller.go +++ b/controllers/swiftproxy_controller.go @@ -803,7 +803,8 @@ func (r *SwiftProxyReconciler) 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 {