Skip to content

Commit df91d3c

Browse files
authored
Adapt TestInferencePoolMultipleTargetPorts test to Openshift (#58448)
Starting from Openshift 4.19 (1.32), GW API comes pre-installed and should not be deployed. But GatewayAPIInferenceExtension should be deployed on Openshift in any condition. Adding condition to make sure GatewayAPIInferenceExtension CRDs are being deployed during the test execution. Signed-off-by: Maxim Babushkin <mbabushk@redhat.com>
1 parent d064568 commit df91d3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/test/framework/components/crd/gateway.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ func DeployGatewayAPIInferenceExtensionOrSkip(ctx framework.TestContext) {
109109

110110
func DeployGatewayAPIInferenceExtension(ctx resource.Context) error {
111111
cfg, _ := istio.DefaultConfig(ctx)
112-
if !cfg.DeployGatewayAPI {
112+
// Starting from Openshift 4.19 (1.32), GW API comes pre-installed and should not be deployed.
113+
// But GatewayAPIInferenceExtension should be deployed on Openshift in any condition.
114+
if !cfg.DeployGatewayAPI && !ctx.Settings().OpenShift {
113115
return nil
114116
}
115117
if !SupportsGatewayAPI(ctx) {

0 commit comments

Comments
 (0)