Skip to content

Commit

Permalink
Fix APIs not reconciling on adapter restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Oct 8, 2024
1 parent bacebe8 commit e0c36f0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions adapter/internal/operator/controllers/dp/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand All @@ -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]
Expand Down

0 comments on commit e0c36f0

Please sign in to comment.