Skip to content

feat(translator): report ineffective backend priority in route status - #10462

Open
kkk777-7 wants to merge 2 commits into
envoyproxy:mainfrom
kkk777-7:fix/report-ineffective-backend-priority
Open

kkk777-7 wants to merge 2 commits into
envoyproxy:mainfrom
kkk777-7:fix/report-ineffective-backend-priority

Conversation

@kkk777-7

@kkk777-7 kkk777-7 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Follow-up to #10248.
A rule's backend priorities, set by a backendPriority HTTPRouteFilter or a fallback Backend, only take effect while the rule's backends share one Envoy cluster. When something else splits the rule into weighted clusters (for example a RequestHeaderModifier on the secondary backendRef), the priorities have no effect but the route still shows Accepted=True.

This PR adds a BackendPriorityIneffective condition (status True) to HTTPRoute and GRPCRoute status in that case. Accepted is unchanged, since traffic is still routed according to the weights. The message lists each affected rule and why it is split, e.g.:

Backend priority has no effect on rule 0 because its backends are split into separate clusters: backendRefs have filters other than backendPriority.

Which issue(s) this PR fixes:

Fixes #10370


PR Checklist

  • Authorship & ownership: Coding agents / AI assistants are welcome, but I have reviewed every change, understand how and why it works, can explain and maintain it, and take full responsibility for this PR. I have not submitted generated output I do not understand.
  • DCO: All commits are signed off (git commit -s). See DCO: Sign your work.
  • API agreed first: If this PR contains API changes (changes under /api), the API was discussed and agreed before the implementation. The API change can be in a separate PR, or in the same PR, but the API must be agreed before implementation. N/A if this PR does not contain API changes.
  • Required checks pass: make generate gen-check, make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, but gen-check, lint, and coverage MUST pass.)
  • Tests added/updated: New/changed code is covered by appropriate tests. N/A if this PR does not contain code changes.
  • Docs: User-facing changes update the docs, either in this PR or a follow-up PR. N/A if this PR does not contain user-facing changes.
  • Release notes: For any non-trivial change, added a release-note fragment under release-notes/current/<section>/<pr-number>-<slug>.md (see release-notes/current/README.md for sections and naming). N/A if this PR does not contain non-trivial changes.
  • Generated files committed: Ran make gen-check and committed the result if API/helm charts/modules changed.
  • Scope & compatibility: The PR is reasonably scoped (no unrelated changes) and preserves backward compatibility, or any breaking change is called out above and documented in release-notes/current/breaking_changes/.
  • Codex review: Requested a Codex review and addressed all of its comments.
  • Copilot review: Requested a Copilot review and addressed all of its comments.

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
@kkk777-7
kkk777-7 requested a review from a team as a code owner October 30, 2026 09:25
@netlify

netlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 476d509
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6ae462e9844a9dbcc2086858
😎 Deploy Preview https://deploy-preview-10462--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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T09:30:05.672146Z efdd2f3 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
@kkk777-7
kkk777-7 requested a review from zhaohuabing October 30, 2026 09:27
@kkk777-7 kkk777-7 added this to the v1.10.0 Release milestone Oct 30, 2026
@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.23%. Comparing base (b02cef4) to head (476d509).

Files with missing lines Patch % Lines
internal/gatewayapi/route.go 92.98% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10462      +/-   ##
==========================================
+ Coverage   82.20%   82.23%   +0.03%     
==========================================
  Files         277      277              
  Lines       44014    44089      +75     
==========================================
+ Hits        36181    36256      +75     
  Misses       7832     7832              
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
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.

Improve HTTPRouteFilter status

1 participant