File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments