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(translator): Implement tcp idle timeout in ClientTrafficPolicy #3459

Merged
merged 2 commits into from
May 24, 2024

Conversation

aoledk
Copy link
Contributor

@aoledk aoledk commented May 23, 2024

What this PR does / why we need it:

Implement tcp idle timeout in ClientTrafficPolicy, follow up #3345

Which issue(s) this PR fixes:

Fixes #3343

Signed-off-by: Dingkang Li <dingkang1743@gmail.com>
@aoledk aoledk requested a review from a team as a code owner May 23, 2024 03:25
Copy link

codecov bot commented May 23, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 67.11%. Comparing base (c348370) to head (e530b6c).

Files Patch % Lines
internal/gatewayapi/clienttrafficpolicy.go 85.71% 2 Missing and 1 partial ⚠️
internal/xds/translator/translator.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3459      +/-   ##
==========================================
+ Coverage   67.09%   67.11%   +0.01%     
==========================================
  Files         166      166              
  Lines       19618    19633      +15     
==========================================
+ Hits        13163    13176      +13     
- Misses       5504     5505       +1     
- Partials      951      952       +1     

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

arkodg
arkodg previously approved these changes May 23, 2024
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 May 23, 2024 21:29
guydc
guydc previously approved these changes May 23, 2024
Copy link
Contributor

@guydc guydc left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -521,19 +525,34 @@ func translatePathSettings(pathSettings *egv1a1.PathSettings, httpIR *ir.HTTPLis
}
}

func translateClientTimeout(clientTimeout *egv1a1.ClientTimeout, httpIR *ir.HTTPListener) error {
func buildClientTimeout(clientTimeout *egv1a1.ClientTimeout) (*ir.ClientTimeout, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

which func name prefix do we prefer here? I see we are using different prefix names for these func, like buildXXX and translateXXX?

Is a non blocking comment, but IMO we should unify them.

Copy link
Contributor

Choose a reason for hiding this comment

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

vote for build, it's consistent with all the build methods in BTP

Signed-off-by: Dingkang Li <dingkang1743@gmail.com>
@aoledk aoledk dismissed stale reviews from guydc and arkodg via e530b6c May 24, 2024 08:55
@aoledk aoledk requested review from guydc, arkodg and shawnh2 May 24, 2024 09:11
@arkodg arkodg merged commit 3c41dd0 into envoyproxy:main May 24, 2024
23 checks passed
@aoledk aoledk deleted the tcp-idle-timeout-impl branch May 27, 2024 01:53
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.

feat: add support to configuring downstream idle timeout for TCP listener
4 participants