-
Notifications
You must be signed in to change notification settings - Fork 460
moved shared under rules #5944
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
base: main
Are you sure you want to change the base?
moved shared under rules #5944
Conversation
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5944 +/- ##
==========================================
- Coverage 65.80% 65.74% -0.06%
==========================================
Files 217 217
Lines 36056 36195 +139
==========================================
+ Hits 23726 23796 +70
- Misses 10854 10909 +55
- Partials 1476 1490 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
timeout: | ||
http: |
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.
why did this get wiped out ?
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.
may be related to #5967
@@ -23,25 +23,7 @@ spec: | |||
limit: | |||
requests: 21 | |||
unit: Hour | |||
name: two |
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.
why did this get deleted ?
test/e2e/testdata/ratelimit-global-shared-gateway-header-match.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
looks like all the e2e are failing |
} else { | ||
hasNonShared = true | ||
} | ||
if hasShared && hasNonShared { |
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.
why is this needed, imo will never be true
for _, rule := range route.Traffic.RateLimit.Global.Rules { | ||
if isRuleShared(rule) { | ||
hasShared = true | ||
if sharedRuleName == "" { |
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.
is sharedRuleName == ""
required , or should we rely on stripRuleIndexSuffix
to gracefully handle it even when the input is unlikely
Value: value, | ||
Descriptors: serviceDescriptors, | ||
for i, rule := range route.Traffic.RateLimit.Global.Rules { | ||
if i >= len(serviceDescriptors) || (includeShared != isRuleShared(rule)) { |
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.
curious why the logic around descriptor creation has increased, shouldnt it be the same and leverage the rule name for descriptor key and value ?
Name
field from TrafficFeatures IR, add patch keys to traffic features IR rulesName
field to RateLimitRule (this is the key for merging logic)Before:
After: