We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd0c78 commit d3edb8fCopy full SHA for d3edb8f
pkg/controller/llmisvc/fixture/gwapi_builders.go
@@ -283,6 +283,12 @@ func WithBackendRefs(refs ...gatewayapi.HTTPBackendRef) HTTPRouteRuleOption {
283
}
284
285
286
+func WithHTTPRouteGatewayRef(references ...gatewayapi.ParentReference) HTTPRouteOption {
287
+ return func(route *gatewayapi.HTTPRoute) {
288
+ route.Spec.ParentRefs = append(route.Spec.ParentRefs, references...)
289
+ }
290
+}
291
+
292
// BackendRefInferencePool creates a v1alpha2 InferencePool backend ref
293
func BackendRefInferencePool(name string) gatewayapi.HTTPBackendRef {
294
return gatewayapi.HTTPBackendRef{
0 commit comments