-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved status for RateLimitPolicy #87
Comments
@rahulanand16nov @eguzki any thoughts on something like the above |
To get a better view of the overall status, we have also identified that we need some improvements to the RateLimit resource and limitador. We can follow on with tasks to help us get a deeper insight into limitador and WASMPlugin etc |
* delete unused API CRD and controller * manifests updated
One rate limit policy may be affecting multiple gateways targeting a route with multiple parent gateways. The WasmPlugin is per gateway basis. |
To take into account as well that depending on the gateways, routes and policies, as well as route selectors, a wasmplugin may not be created because there is nothing to rate limit. So, there are scenarios, where reconciliation is done successfully, but the policy is indeed ineffective. If this is a spec configuration mistake (for example wrong route selectors), the status conditions should shout out: "ey, there is nothing I can do, it is your fault and rate limiting will not happen" |
Closing this in favor of the RFC one... |
What
The RateLimitPolicy status should aggregate the status of the WASMPlugin any EnvoyFilters, HTTPRoute and also the RateLimit limitador resource. The RateLimitPolicy API is the end user facing API and it should communicate well the current state of the rate limiting set up.
Initially the status can reflect wether the ratelimit, envoyfilter and WasmPlugin has been created and the HTTPRoute is accepted. Possibly we want to add some new conditions as we are interacting with two different systems perhaps a condition for
Gateway
and a condition forRateLimitService
and then a generalReady
condition. alternatively we could use the Ready condition with specific messages to communicate. Our status block for AuthPolicy should follow the same pattern we decide on hereThe text was updated successfully, but these errors were encountered: