fix(gatewayapi): honor listener routing type without sectionName #10059
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.53) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.53 · 460 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.367
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #10059"
general
weight: 0.35
banlor
What this PR does / why we need it:
A listener-level BackendTrafficPolicy
routingTypewas ignored for routes whose parentRef omitssectionName, because routing was resolved once per parentRef from its own sectionName. Listeners are now grouped by the routing type they inherit, and the rules are translated once per group: once when every listener inherits the parentRef's own routing, as on main, and twice at most otherwise. Request mirrors follow the listener too. Where a listener's policy changes a route's routing type, the route's inline clusters on that listener get a/routing/serviceor/routing/endpointsuffix; no existing golden changes.New golden cases cover HTTP, GRPC, TCP, UDP, TLS, ListenerSet, hostname mismatch, errors from both groups, route-level pins and merged backends.
All commits carry a DCO sign-off.
make lint,make go.testdata.complete(no diff) andmake go.test.coveragepass.make generate gen-checkstops atprotos, where Buf's remote plugin call returnspermission_denied: 403; the earlier steps leave no diff, and this PR changes no protos.Known limitation, unchanged from main: if a route has two parentRefs whose listeners resolve different routing types, both still share one cluster name and only the first one's endpoints reach Envoy. That needs a separate fix.
Claude (Anthropic) helped prepare the code, tests and this description.
Which issue(s) this PR fixes:
Fixes #9696
---
PR Checklist
git commit -s). See DCO: Sign your work./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. N/A: no API changes.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.make gen-checkand committed the result if API/helm charts/modules changed. N/A: no API, Helm chart or module changes.release-notes/current/breaking_changes/.