From 6fde326e5bd1e9c045c2ae0234a03895f6440e31 Mon Sep 17 00:00:00 2001 From: Sanskar Jaiswal Date: Mon, 20 Apr 2026 16:24:48 +0530 Subject: [PATCH] gateway-api: only add timeout when specified Signed-off-by: Sanskar Jaiswal --- pkg/router/gateway_api.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/router/gateway_api.go b/pkg/router/gateway_api.go index bbcadc28..31b09b20 100644 --- a/pkg/router/gateway_api.go +++ b/pkg/router/gateway_api.go @@ -369,10 +369,6 @@ func (gwr *GatewayAPIRouter) SetRoutes( }, }) } - var timeout v1.Duration - if canary.Spec.Service.Timeout != "" { - timeout = v1.Duration(canary.Spec.Service.Timeout) - } weightedRouteRule := &v1.HTTPRouteRule{ Matches: matches, @@ -441,9 +437,6 @@ func (gwr *GatewayAPIRouter) SetRoutes( BackendRef: gwr.makeBackendRef(primarySvcName, initialPrimaryWeight, canary.Spec.Service.Port), }, }, - Timeouts: &v1.HTTPRouteTimeouts{ - Request: &timeout, - }, }) if canary.Spec.Service.Timeout != "" {