mirror of
https://github.com/fluxcd/flagger.git
synced 2026-09-05 02:47:17 +00:00
gateway-api: only add timeout when specified
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user