diff --git a/adapter/internal/operator/controllers/dp/api_controller.go b/adapter/internal/operator/controllers/dp/api_controller.go index 140d23cf2..dc5aaaa13 100644 --- a/adapter/internal/operator/controllers/dp/api_controller.go +++ b/adapter/internal/operator/controllers/dp/api_controller.go @@ -1993,11 +1993,6 @@ func (apiReconciler *APIReconciler) getAPIsForGateway(ctx context.Context, obj k return []reconcile.Request{} } - if len(httpRouteList.Items) == 0 { - loggers.LoggerAPKOperator.Debugf("HTTPRoutes for Gateway not found: %s", utils.NamespacedName(gateway).String()) - return []reconcile.Request{} - } - grpcRouteList := &gwapiv1a2.GRPCRouteList{} if err := apiReconciler.client.List(ctx, grpcRouteList, &k8client.ListOptions{ FieldSelector: fields.OneTermEqualSelector(gatewayGRPCRouteIndex, utils.NamespacedName(gateway).String()), @@ -2006,11 +2001,6 @@ func (apiReconciler *APIReconciler) getAPIsForGateway(ctx context.Context, obj k return []reconcile.Request{} } - if len(grpcRouteList.Items) == 0 { - loggers.LoggerAPKOperator.Debugf("GRPCRoutes for Gateway not found: %s", utils.NamespacedName(gateway).String()) - return []reconcile.Request{} - } - requests := []reconcile.Request{} for item := range httpRouteList.Items { httpRoute := httpRouteList.Items[item]