Skip to content

translator: move EnvoyProxy validation out of Provider#7009

Merged
zirain merged 5 commits intoenvoyproxy:mainfrom
zirain:fix-6752
Oct 31, 2025
Merged

translator: move EnvoyProxy validation out of Provider#7009
zirain merged 5 commits intoenvoyproxy:mainfrom
zirain:fix-6752

Conversation

@zirain
Copy link
Copy Markdown
Member

@zirain zirain commented Sep 19, 2025

What type of PR is this?

xref: #6752

@zirain zirain requested a review from a team as a code owner September 19, 2025 05:03
@zirain zirain changed the title translator: move EnvoyPorxy validation out of Provider translator: move EnvoyProxy validation out of Provider Sep 19, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 19, 2025

Codecov Report

❌ Patch coverage is 76.92308% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.32%. Comparing base (93e78d8) to head (973ac45).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/gatewayapi/translator.go 87.27% 5 Missing and 2 partials ⚠️
internal/provider/kubernetes/controller.go 33.33% 6 Missing ⚠️
internal/gatewayapi/runner/runner.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7009      +/-   ##
==========================================
+ Coverage   72.28%   72.32%   +0.04%     
==========================================
  Files         231      231              
  Lines       33952    33999      +47     
==========================================
+ Hits        24542    24590      +48     
- Misses       7639     7642       +3     
+ Partials     1771     1767       -4     

☔ 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.

rudrakhp
rudrakhp previously approved these changes Sep 19, 2025
Copy link
Copy Markdown
Member

@rudrakhp rudrakhp left a comment

Choose a reason for hiding this comment

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

LGTM with one question

cnvergence
cnvergence previously approved these changes Sep 19, 2025
Copy link
Copy Markdown
Member

@cnvergence cnvergence left a comment

Choose a reason for hiding this comment

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

👍🏻

@zirain zirain dismissed stale reviews from cnvergence and rudrakhp via 9ace30c September 20, 2025 03:01
rudrakhp
rudrakhp previously approved these changes Sep 20, 2025
cnvergence
cnvergence previously approved these changes Sep 24, 2025
@zirain zirain dismissed stale reviews from cnvergence and rudrakhp via a59d4c9 September 24, 2025 23:15
@zirain zirain force-pushed the fix-6752 branch 5 times, most recently from 5c6f847 to b046000 Compare October 16, 2025 08:33
gCtx.ResetListeners(resources, envoyproxyMap)
if ep := gCtx.envoyProxy; ep != nil {
key := utils.NamespacedName(ep)
if err, exits := envoyproxyValidationErrorMap[key]; exits {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

on L389

		// Gateways that are not accepted by the controller because they reference an invalid EnvoyProxy.
		if status.GatewayNotAccepted(gCtx.Gateway) {

but we are agin setting the status for the same reason, is this correct ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

let's try to recall what's happen on Monday.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it's different.
For L390, it's generally means EnvoyProxy not found.

Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain enabled auto-merge (squash) October 31, 2025 07:31
@zirain
Copy link
Copy Markdown
Member Author

zirain commented Oct 31, 2025

/retest

@zirain zirain merged commit b10f1a2 into envoyproxy:main Oct 31, 2025
64 of 68 checks passed
@zirain zirain deleted the fix-6752 branch October 31, 2025 11:21
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.

5 participants