-
Notifications
You must be signed in to change notification settings - Fork 596
feat add query parameter to lb hash policy #7428
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?
Conversation
dd82c08 to
208dbed
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7428 +/- ##
==========================================
- Coverage 72.28% 71.19% -1.09%
==========================================
Files 231 274 +43
Lines 33999 34830 +831
==========================================
+ Hits 24576 24798 +222
- Misses 7652 8244 +592
- Partials 1771 1788 +17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d7a146d to
e7d154b
Compare
api/v1alpha1/loadbalancer_types.go
Outdated
| // QueryParameter configures the query parameter hash policy when the consistent hash type is set to QueryParameter. | ||
| // | ||
| // +optional | ||
| QueryParameter *QueryParameter `json:"queryParameter,omitempty"` |
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.
lets rename to queryParam to keep it consistent with the API https://gateway-api.sigs.k8s.io/reference/spec/#httproutematch
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.
Done
e7d154b to
8c5e135
Compare
Signed-off-by: i.makarychev <[email protected]> Signed-off-by: i.makarychev <[email protected]>
8c5e135 to
35419e3
Compare
|
|
||
| // QueryParamName defines the query parameter name hashing configuration for consistent hash based | ||
| // load balancing. | ||
| type QueryParam string |
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.
should we reuse the struct from gwapi?
What type of PR is this?
What this PR does / why we need it:
Support query_parameter as a source for consistent hashing in Envoy Gateway
Which issue(s) this PR fixes:
Fixes #6398
Release Notes: Yes/No