Skip to content

Commit d3edb8f

Browse files
committed
Resolving merge conflict in gwapi_builders.go
Signed-off-by: Killian Golds <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent 3bd0c78 commit d3edb8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/controller/llmisvc/fixture/gwapi_builders.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ func WithBackendRefs(refs ...gatewayapi.HTTPBackendRef) HTTPRouteRuleOption {
283283
}
284284
}
285285

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+
286292
// BackendRefInferencePool creates a v1alpha2 InferencePool backend ref
287293
func BackendRefInferencePool(name string) gatewayapi.HTTPBackendRef {
288294
return gatewayapi.HTTPBackendRef{

0 commit comments

Comments
 (0)