Skip to content

fix: Add overlap status for duplicate HTTPRoutes#8373

Open
jukie wants to merge 16 commits into
envoyproxy:mainfrom
jukie:route-overlap
Open

fix: Add overlap status for duplicate HTTPRoutes#8373
jukie wants to merge 16 commits into
envoyproxy:mainfrom
jukie:route-overlap

Conversation

@jukie
Copy link
Copy Markdown
Contributor

@jukie jukie commented Feb 28, 2026

What this PR does / why we need it:
The first route that gets applied will take precedence but subsequent routes don't show any indication that they're being ignored. This adds a an Overlap status to ResolvedRefs to communicate this behavior to users.

Fixes #8101

Release Notes: Yes

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 28, 2026

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 2b8be90
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69ed9bec27f2e500087f52f3
😎 Deploy Preview https://deploy-preview-8373--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 28, 2026

Codecov Report

❌ Patch coverage is 90.06211% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.43%. Comparing base (7811d86) to head (2b8be90).

Files with missing lines Patch % Lines
internal/gatewayapi/route.go 89.67% 10 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8373      +/-   ##
==========================================
+ Coverage   74.37%   74.43%   +0.06%     
==========================================
  Files         246      246              
  Lines       39287    39443     +156     
==========================================
+ Hits        29218    29359     +141     
- Misses       8040     8050      +10     
- Partials     2029     2034       +5     

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

@jukie jukie changed the title route overlap fix: Add overlap status for duplicate HTTPRoutes Feb 28, 2026
@jukie jukie marked this pull request as ready for review February 28, 2026 21:14
@jukie jukie requested a review from a team as a code owner February 28, 2026 21:14
@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Feb 28, 2026

/retest

@zirain
Copy link
Copy Markdown
Member

zirain commented Mar 1, 2026

will this fix HTTPRouteHostnameIntersection conformance test?

Ignore above, it's fixed by #8186

Comment thread internal/gatewayapi/route.go Outdated
Comment thread internal/gatewayapi/route.go Outdated
Comment thread internal/gatewayapi/route.go Outdated
Comment thread internal/gatewayapi/testdata/httproute-overlapping-matches.out.yaml Outdated
jukie added 2 commits March 9, 2026 07:18
Signed-off-by: jukie <isaac.wilson514@gmail.com>
Signed-off-by: jukie <isaac.wilson514@gmail.com>
@jukie jukie requested review from arkodg and zhaohuabing March 9, 2026 16:08
Signed-off-by: jukie <isaac.wilson514@gmail.com>
Comment thread internal/gatewayapi/overlap_test.go Outdated
Comment thread internal/gatewayapi/overlap_test.go Outdated
Comment thread internal/gatewayapi/overlap_test.go Outdated
@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Apr 9, 2026

/retest

Signed-off-by: jukie <10012479+jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
…rlaps

Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
@jukie jukie requested a review from zhaohuabing April 9, 2026 05:32
@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Apr 9, 2026

/retest

@jukie jukie requested a review from a team April 9, 2026 17:00
Comment thread internal/gatewayapi/route.go Outdated
Comment thread internal/gatewayapi/route.go Outdated
Comment thread internal/gatewayapi/route.go Outdated
jukie and others added 2 commits April 13, 2026 17:29
Signed-off-by: jukie <10012479+jukie@users.noreply.github.com>
@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Apr 16, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe3d5bf7c4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/gatewayapi/route.go
Comment thread internal/gatewayapi/route.go Outdated
@jukie jukie requested review from a team and zhaohuabing April 24, 2026 02:15
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.

HTTPRoute overlap does not result in status conditions being set

4 participants