mirror of
https://github.com/alibaba/higress.git
synced 2026-06-06 03:07:28 +08:00
optimize default action of route envoyfilter (#985)
This commit is contained in:
@@ -636,6 +636,9 @@ func (g *GlobalOptionController) constructBufferLimit(downstream *Downstream) st
|
|||||||
|
|
||||||
// constructRouteTimeout constructs the route timeout config.
|
// constructRouteTimeout constructs the route timeout config.
|
||||||
func (g *GlobalOptionController) constructRouteTimeout(downstream *Downstream) string {
|
func (g *GlobalOptionController) constructRouteTimeout(downstream *Downstream) string {
|
||||||
|
if downstream.RouteTimeout == 0 {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"route": {
|
"route": {
|
||||||
|
|||||||
@@ -504,14 +504,6 @@ var ConfigMapGlobalEnvoy = suite.ConformanceTest{
|
|||||||
"idle_timeout": "180s",
|
"idle_timeout": "180s",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Path: "configs.#.dynamic_route_configs.#.route_config.virtual_hosts.#.routes.#.route",
|
|
||||||
CheckType: envoy.CheckTypeMatch,
|
|
||||||
TargetNamespace: "higress-system",
|
|
||||||
ExpectEnvoyConfig: map[string]interface{}{
|
|
||||||
"timeout": "0s",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Path: "configs.#.dynamic_active_clusters.#.cluster",
|
Path: "configs.#.dynamic_active_clusters.#.cluster",
|
||||||
CheckType: envoy.CheckTypeMatch,
|
CheckType: envoy.CheckTypeMatch,
|
||||||
@@ -778,14 +770,6 @@ var ConfigMapGlobalEnvoy = suite.ConformanceTest{
|
|||||||
"idle_timeout": "180s",
|
"idle_timeout": "180s",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Path: "configs.#.dynamic_route_configs.#.route_config.virtual_hosts.#.routes.#.route",
|
|
||||||
CheckType: envoy.CheckTypeMatch,
|
|
||||||
TargetNamespace: "higress-system",
|
|
||||||
ExpectEnvoyConfig: map[string]interface{}{
|
|
||||||
"timeout": "0s",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Path: "configs.#.dynamic_active_clusters.#.cluster",
|
Path: "configs.#.dynamic_active_clusters.#.cluster",
|
||||||
CheckType: envoy.CheckTypeMatch,
|
CheckType: envoy.CheckTypeMatch,
|
||||||
@@ -968,14 +952,6 @@ var ConfigMapGlobalEnvoy = suite.ConformanceTest{
|
|||||||
"idle_timeout": "180s",
|
"idle_timeout": "180s",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Path: "configs.#.dynamic_route_configs.#.route_config.virtual_hosts.#.routes.#.route",
|
|
||||||
CheckType: envoy.CheckTypeMatch,
|
|
||||||
TargetNamespace: "higress-system",
|
|
||||||
ExpectEnvoyConfig: map[string]interface{}{
|
|
||||||
"timeout": "0s",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Path: "configs.#.dynamic_active_clusters.#.cluster",
|
Path: "configs.#.dynamic_active_clusters.#.cluster",
|
||||||
CheckType: envoy.CheckTypeMatch,
|
CheckType: envoy.CheckTypeMatch,
|
||||||
|
|||||||
Reference in New Issue
Block a user