-
Notifications
You must be signed in to change notification settings - Fork 347
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
Change ratelimit API to support distinct match #1308
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1308 +/- ##
==========================================
+ Coverage 61.84% 61.91% +0.06%
==========================================
Files 76 76
Lines 10718 10718
==========================================
+ Hits 6629 6636 +7
+ Misses 3644 3637 -7
Partials 445 445 see 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: zhaohuabing <zhaohuabing@gmail.com>
5a36953
to
cd573c0
Compare
PR title spell error |
cd573c0
to
f994374
Compare
Signed-off-by: zhaohuabing <zhaohuabing@gmail.com>
8c61750
to
44700b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this change and I think it's definitely much needed for common ratelimit use-cases. Looks like a few conformance tests are failing but it could just be because of the pre-install flake we were seeing. I'l restart them real quick.
hey @zhaohuabing wanted to share some more suggestions, hoping @envoyproxy/gateway-maintainers can chime in
vs
I prefer |
sourceCIDR: @arkodg Exact is a bit vague. How about Masked or Subnet? |
@zhaohuabing |
Signed-off-by: zhaohuabing <zhaohuabing@gmail.com>
4ff50b5
to
d05d102
Compare
I got it. I'm ok with Exact unless we find a better name. |
no strong opinions around this but for the current struct
Just so it reads
|
hey @chauhanshubham this is what it would look like
the word
|
@zhaohuabing thanks for incorporating my suggestions, so LGTM from my side |
f17e3be
to
b54861c
Compare
b54861c
to
22421fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes work for me
merging, thanks @zhaohuabing ! |
Relates to envoyproxy#1308 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
* rm deprecated SourceIP field Relates to #1308 Signed-off-by: Arko Dasgupta <arko@tetrate.io> * fix tests Signed-off-by: Arko Dasgupta <arko@tetrate.io> * lint Signed-off-by: Arko Dasgupta <arko@tetrate.io> --------- Signed-off-by: Arko Dasgupta <arko@tetrate.io> Co-authored-by: Xunzhuo <bitliu@tencent.com>
This PR is the API change for #1150. Once we agreed on API, the implementation will be submitted in another PR.