Skip to content
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

feat: support session persistence in HTTPRouteRule #3841

Merged
merged 20 commits into from
Aug 10, 2024

Conversation

sanposhiho
Copy link
Contributor

What type of PR is this?

What this PR does / why we need it:

support session persistence in HTTPRouteRule.

Which issue(s) this PR fixes:

Fixes #3315
Ref #2624 (comment)
GEP: https://gateway-api.sigs.k8s.io/geps/gep-1619/

@sanposhiho sanposhiho requested a review from a team as a code owner July 14, 2024 12:54
Copy link

codecov bot commented Jul 14, 2024

Codecov Report

Attention: Patch coverage is 58.40708% with 47 lines in your changes missing coverage. Please review.

Project coverage is 67.58%. Comparing base (975b1e8) to head (c5947c5).

Files Patch % Lines
internal/gatewayapi/route.go 12.50% 27 Missing and 1 partial ⚠️
internal/xds/translator/session_persistence.go 75.64% 10 Missing and 9 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3841      +/-   ##
==========================================
- Coverage   67.61%   67.58%   -0.03%     
==========================================
  Files         185      186       +1     
  Lines       22578    22689     +111     
==========================================
+ Hits        15265    15335      +70     
- Misses       6217     6251      +34     
- Partials     1096     1103       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sanposhiho sanposhiho force-pushed the session-persistence branch 5 times, most recently from d33c8f3 to 53cb615 Compare July 16, 2024 03:40
internal/ir/xds.go Show resolved Hide resolved
internal/xds/translator/session_persistence_test.go Outdated Show resolved Hide resolved
@sanposhiho sanposhiho requested a review from shawnh2 July 18, 2024 10:41
@sanposhiho sanposhiho force-pushed the session-persistence branch from 04752ea to 0f45c69 Compare July 18, 2024 10:44
internal/ir/xds.go Outdated Show resolved Hide resolved
@zhaohuabing
Copy link
Member

Can we add an e2e test for this?

@sanposhiho sanposhiho force-pushed the session-persistence branch 2 times, most recently from d3527e8 to 9e8b85c Compare July 26, 2024 15:38
@sanposhiho
Copy link
Contributor Author

Done. Addressed the points from @zhaohuabing and added the e2e test.

@sanposhiho sanposhiho force-pushed the session-persistence branch 6 times, most recently from 8936443 to 0eed511 Compare July 27, 2024 04:29
@sanposhiho
Copy link
Contributor Author

/retest

@sanposhiho sanposhiho requested a review from zhaohuabing July 29, 2024 15:58
zhaohuabing
zhaohuabing previously approved these changes Jul 30, 2024
Copy link
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for picking this up!

Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
@sanposhiho sanposhiho force-pushed the session-persistence branch from 45c2a89 to baf0973 Compare August 7, 2024 08:18
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
@sanposhiho sanposhiho force-pushed the session-persistence branch from baf0973 to c91cfb6 Compare August 7, 2024 08:19
@sanposhiho
Copy link
Contributor Author

@arkodg Addressed your point + rebased for a conflict.

@zirain
Copy link
Contributor

zirain commented Aug 7, 2024

/retest

Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
@sanposhiho
Copy link
Contributor Author

@zirain Updated based on your points.

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg arkodg requested review from a team August 7, 2024 20:19
@arkodg arkodg requested a review from zirain August 8, 2024 23:16
Copy link
Contributor

@zirain zirain left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@zirain zirain merged commit bd26a41 into envoyproxy:main Aug 10, 2024
27 checks passed
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.

Session Persistence
6 participants