Before merging route and gateway level limits/{gateway actions}, add gateway level limits/{gateway actions} for the hostnames defined in the gateway (falling back to global wildcard * if not defined)
verification steps
Deploy the kuadrant controller
make local-setup
deploy toystore service
kubectl apply -f examples/toystore/toystore.yaml
Create toystore HTTPRoute to configure routing to the toystore service
what
Fix #197
how
Before merging route and gateway level limits/{gateway actions}, add gateway level limits/{gateway actions} for the hostnames defined in the gateway (falling back to global wildcard
*
if not defined)verification steps
Deploy the kuadrant controller
Create
toystore
HTTPRoute to configure routing to the toystore serviceCheck
toystore
HTTPRoute works and it is not rate limited.GET /toy
: no rate limitingPOST /admin/toy
: no rate limitingAdding gateway level RLP
POST /*
Validating the gateway level rate limit policy:
GET /toy
: no rate limitingPOST /admin/toy
: expected to be rate limited @ 2 reqs / 10 secs (0.2 rps)