Skip to content

Commit cc25577

Browse files
committed
fix test
1 parent 9ba6405 commit cc25577

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

internal/controller/apisixroute_controller.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -471,19 +471,6 @@ func (r *ApisixRouteReconciler) validateHTTPBackend(tctx *provider.TranslateCont
471471
}
472472
tctx.Services[serviceNN] = &service
473473

474-
var endpoints discoveryv1.EndpointSliceList
475-
if err := r.List(tctx, &endpoints,
476-
client.InNamespace(service.Namespace),
477-
client.MatchingLabels{
478-
discoveryv1.LabelServiceName: service.Name,
479-
},
480-
); err != nil {
481-
return types.ReasonError{
482-
Reason: string(apiv2.ConditionReasonInvalidSpec),
483-
Message: fmt.Sprintf("failed to list endpoint slices: %v", err),
484-
}
485-
}
486-
487474
// backend.subset specifies a subset of upstream nodes.
488475
// It specifies that the target pod's label should be a superset of the subset labels of the ApisixUpstream of the serviceName
489476
subsetLabels := r.getSubsetLabels(tctx, serviceNN, backend.Subset)

0 commit comments

Comments
 (0)