Skip to content

Commit fa680c2

Browse files
add ratelimit per-route config to include vh-level actions (Kuadrant#92)
1 parent 32b4f76 commit fa680c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

controllers/apim/ratelimitpolicy_controller.go

+6
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,12 @@ func routeRateLimitsPatch(vHostName string, routeName string, rateLimits []*apim
439439
"operation": "MERGE",
440440
"value": map[string]interface{}{
441441
"route": map[string]interface{}{
442+
"typed_per_filter_config": map[string]interface{}{
443+
"envoy.filters.http.ratelimit": map[string]interface{}{
444+
"@type": "type.googleapis.com/envoy.extensions.filters.http.ratelimit.v3.RateLimitPerRoute",
445+
"vh_rate_limits": "include",
446+
},
447+
},
442448
"rate_limits": common.EnvoyFilterRatelimitsUnstructured(rateLimits),
443449
},
444450
},

0 commit comments

Comments
 (0)