Repository navigation
fix(translator): decide merge eligibility from what a cluster actually uses - #10804
Draft
zhaohuabing wants to merge 3 commits into
Draft
zhaohuabing wants to merge 3 commits into
zhaohuabing wants to merge 3 commits into
Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10804 +/- ##
=======================================
Coverage 82.85% 82.85%
=======================================
Files 278 278
Lines 44695 44695
=======================================
+ Hits 37032 37033 +1
+ Misses 7662 7661 -1
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
10 of 11 tasks
…y uses The merge check, merged clusters and the TCP/UDP route loops each kept their own list of which BackendTrafficPolicy fields reach which kind of cluster. They now share one function on the IR cluster settings, so a route only leaves the shared cluster when its policy changes something that cluster would use. This stops http1 on a GRPCRoute from splitting off the route, and gives Gateway-level policies the backend connection settings that route-level ones already applied to TCP routes. Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
zhaohuabing
force-pushed
the
btp-cluster-settings-for-protocol
branch
from
December 4, 2026 06:38
c6549e6 to
fc0e07f
Compare
The TCP backend connection fix landed separately in envoyproxy#10805, so this release note only needs the merge change. Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
This takes a different approach from #10421. Instead of adding a per-route-kind exception to the merge check, it moves the "which BackendTrafficPolicy fields reach which kind of cluster" decision into one function,
ClusterTrafficFeatures.ForProtocol. A route now only leaves the shared cluster when its policy changes something that cluster would actually use.The function replaces three separate field lists:
applyGatewayPolicyToMergedClusterGateway, listener and ListenerSet targets are judged as HTTP, which keeps every field, so they behave as before. A policy whose settings fail to build still demerges.
Follow-ups: the UnsupportedField warning still only covers http1 and could report whatever
ForProtocoldrops; non-merged GRPCRoutes still copy http1 into their own cluster.Which issue(s) this PR fixes:
Fixes #10307
PR Checklist
git commit -s). See DCO: Sign your work.make generate gen-check,make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, butgen-check,lint, and coverage MUST pass.)release-notes/current/<section>/<pr-number>-<slug>.md(seerelease-notes/current/README.mdfor sections and naming). N/A if this PR does not contain non-trivial changes.release-notes/current/breaking_changes/.