Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit 55eb18c

Browse files
authored
Remove inf pool backendref creation (#214)
Signed-off-by: Jing Chen <[email protected]>
1 parent c4a1e73 commit 55eb18c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

internal/controller/child_resources.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,6 @@ func (childResources *BaseConfig) mergeHTTPRoute(ctx context.Context, msvc *msv1
854854
// Get dest HTTPRoute
855855
dest := *childResources.HTTPRoute
856856

857-
group := gatewayv1.Group("inference.networking.x-k8s.io")
858-
kind := gatewayv1.Kind("InferencePool")
859-
860857
// At this point, we are going to create the desired HTTPRoute
861858
// with the parentRefs supplied by the user and
862859
// with InferencePool being a backendRef (we are adding this)
@@ -874,22 +871,6 @@ func (childResources *BaseConfig) mergeHTTPRoute(ctx context.Context, msvc *msv1
874871
CommonRouteSpec: gatewayv1.CommonRouteSpec{
875872
ParentRefs: msvc.Spec.Routing.GatewayRefs,
876873
},
877-
Rules: []gatewayv1.HTTPRouteRule{
878-
{
879-
BackendRefs: []gatewayv1.HTTPBackendRef{
880-
{
881-
// InferencePool is added as a backendRef
882-
BackendRef: gatewayv1.BackendRef{
883-
BackendObjectReference: gatewayv1.BackendObjectReference{
884-
Group: &group,
885-
Kind: &kind,
886-
Name: gatewayv1.ObjectName(infPoolName(msvc)),
887-
},
888-
},
889-
},
890-
},
891-
},
892-
},
893874
},
894875
}
895876

0 commit comments

Comments
 (0)