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 http health check filter #3596

Merged
merged 9 commits into from
Jun 15, 2024

Conversation

aoledk
Copy link
Contributor

@aoledk aoledk commented Jun 12, 2024

What this PR does / why we need it:

Follow #3540

Which issue(s) this PR fixes:

Fixes #3258

@aoledk aoledk requested a review from a team as a code owner June 12, 2024 10:19
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 79.31034% with 12 lines in your changes missing coverage. Please review.

Project coverage is 68.33%. Comparing base (4e5a2c6) to head (b6214ed).

Files Patch % Lines
internal/xds/translator/healthcheck.go 76.47% 6 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3596      +/-   ##
==========================================
+ Coverage   68.22%   68.33%   +0.10%     
==========================================
  Files         168      169       +1     
  Lines       20560    20618      +58     
==========================================
+ Hits        14028    14090      +62     
+ Misses       5520     5516       -4     
  Partials     1012     1012              

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

@arkodg
Copy link
Contributor

arkodg commented Jun 13, 2024

thanks @aoledk this is great, can you also add an e2e for this that pings the healthCheck endpoint and gets a 200 back ?

Copy link
Contributor

@shawnh2 shawnh2 left a comment

Choose a reason for hiding this comment

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

LGTM! Just one comment on the naming.

ConformanceTests = append(ConformanceTests, HealthCheckTest)
}

var HealthCheckTest = suite.ConformanceTest{
Copy link
Contributor

Choose a reason for hiding this comment

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

can we rename this into DownstreamHealthCheck? Since this health check is in CTP, as we also have health check in BTP, and the UpstreamHealthCheck e2e test case will be added soon.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 prefer ListenerHealthCheck

arkodg
arkodg previously approved these changes Jun 15, 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 shawnh2 and a team June 15, 2024 03:00
Copy link
Contributor

@shawnh2 shawnh2 left a comment

Choose a reason for hiding this comment

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

LGTM! the linter need a fix :)

@arkodg arkodg merged commit 1059d93 into envoyproxy:main Jun 15, 2024
26 checks passed
@aoledk aoledk deleted the impl-http-health-check-filter branch June 17, 2024 01:56
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.

HealthCheck config for HTTP Downstream
3 participants