Skip to content

Conversation

@Inode1
Copy link
Contributor

@Inode1 Inode1 commented Nov 4, 2025

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

@Inode1 Inode1 requested a review from a team as a code owner November 4, 2025 15:12
@Inode1 Inode1 force-pushed the feat-consistent-hash-query-param branch 2 times, most recently from dd82c08 to 208dbed Compare November 4, 2025 15:21
@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.19%. Comparing base (9935819) to head (35419e3).
⚠️ Report is 69 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Inode1 Inode1 force-pushed the feat-consistent-hash-query-param branch 2 times, most recently from d7a146d to e7d154b Compare November 4, 2025 17:17
// QueryParameter configures the query parameter hash policy when the consistent hash type is set to QueryParameter.
//
// +optional
QueryParameter *QueryParameter `json:"queryParameter,omitempty"`
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Inode1 Inode1 force-pushed the feat-consistent-hash-query-param branch from e7d154b to 8c5e135 Compare November 22, 2025 09:38
Signed-off-by: i.makarychev <[email protected]>
Signed-off-by: i.makarychev <[email protected]>
@Inode1 Inode1 force-pushed the feat-consistent-hash-query-param branch from 8c5e135 to 35419e3 Compare November 22, 2025 09:38

// QueryParamName defines the query parameter name hashing configuration for consistent hash based
// load balancing.
type QueryParam string
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support query_parameter in BTP consistentHash settings

3 participants