From e161163cfc4a39443fbbe50d43934e2ea06bfe64 Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Sat, 19 Oct 2024 10:19:53 +0530 Subject: [PATCH] Fix scope related reconciliation failures --- .../internal/operator/controllers/dp/api_controller.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/adapter/internal/operator/controllers/dp/api_controller.go b/adapter/internal/operator/controllers/dp/api_controller.go index 456f9f964..395d40de3 100644 --- a/adapter/internal/operator/controllers/dp/api_controller.go +++ b/adapter/internal/operator/controllers/dp/api_controller.go @@ -1896,8 +1896,7 @@ func (apiReconciler *APIReconciler) getAPIsForScope(ctx context.Context, obj k8c if err := apiReconciler.client.List(ctx, httpRouteList, &k8client.ListOptions{ FieldSelector: fields.OneTermEqualSelector(httprouteScopeIndex, utils.NamespacedName(scope).String()), }); err != nil { - loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2625, logging.CRITICAL, "Unable to find associated HTTPRoutes: %s", utils.NamespacedName(scope).String())) - return []reconcile.Request{} + loggers.LoggerAPKOperator.Warn(logging.PrintError(logging.Error2625, logging.CRITICAL, "Unable to find associated HTTPRoutes: %s", utils.NamespacedName(scope).String())) } if len(httpRouteList.Items) == 0 { @@ -1914,8 +1913,7 @@ func (apiReconciler *APIReconciler) getAPIsForScope(ctx context.Context, obj k8c if err := apiReconciler.client.List(ctx, gqlRouteList, &k8client.ListOptions{ FieldSelector: fields.OneTermEqualSelector(gqlRouteScopeIndex, utils.NamespacedName(scope).String()), }); err != nil { - loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2625, logging.CRITICAL, "Unable to find associated GQLRoute: %s", utils.NamespacedName(scope).String())) - return []reconcile.Request{} + loggers.LoggerAPKOperator.Warn(logging.PrintError(logging.Error2625, logging.CRITICAL, "Unable to find associated GQLRoute: %s", utils.NamespacedName(scope).String())) } if len(gqlRouteList.Items) == 0 { @@ -1931,8 +1929,7 @@ func (apiReconciler *APIReconciler) getAPIsForScope(ctx context.Context, obj k8c if err := apiReconciler.client.List(ctx, grpcRouteList, &k8client.ListOptions{ FieldSelector: fields.OneTermEqualSelector(grpcRouteScopeIndex, utils.NamespacedName(scope).String()), }); err != nil { - loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2625, logging.CRITICAL, "Unable to find associated GRPCRoutes: %s", utils.NamespacedName(scope).String())) - return []reconcile.Request{} + loggers.LoggerAPKOperator.Warn(logging.PrintError(logging.Error2625, logging.CRITICAL, "Unable to find associated GRPCRoutes: %s", utils.NamespacedName(scope).String())) } if len(grpcRouteList.Items) == 0 {