Skip to content

Commit 6fde326

Browse files
committed
gateway-api: only add timeout when specified
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
1 parent 87fcdb9 commit 6fde326

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

pkg/router/gateway_api.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,6 @@ func (gwr *GatewayAPIRouter) SetRoutes(
369369
},
370370
})
371371
}
372-
var timeout v1.Duration
373-
if canary.Spec.Service.Timeout != "" {
374-
timeout = v1.Duration(canary.Spec.Service.Timeout)
375-
}
376372

377373
weightedRouteRule := &v1.HTTPRouteRule{
378374
Matches: matches,
@@ -441,9 +437,6 @@ func (gwr *GatewayAPIRouter) SetRoutes(
441437
BackendRef: gwr.makeBackendRef(primarySvcName, initialPrimaryWeight, canary.Spec.Service.Port),
442438
},
443439
},
444-
Timeouts: &v1.HTTPRouteTimeouts{
445-
Request: &timeout,
446-
},
447440
})
448441

449442
if canary.Spec.Service.Timeout != "" {

0 commit comments

Comments
 (0)