Skip to content

perf(translator): reuse consecutive backend policy merges - #10147

Merged
zhaohuabing merged 3 commits into
envoyproxy:mainfrom
cooper-oai:cooper/envoy-gateway-policy-merge-reuse-upstream
Nov 4, 2026
Merged

zhaohuabing merged 3 commits into
envoyproxy:mainfrom
cooper-oai:cooper/envoy-gateway-policy-merge-reuse-upstream

Conversation

@cooper-oai

@cooper-oai cooper-oai commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A BackendTrafficPolicy can merge with the same parent policy repeatedly when it targets several routes or attaches through several listeners. The merge result depends on the child/parent pair, not on that attachment.

Keep only the most recent pair and its merged policy, field ownership, and error for the duration of one policy pass. Consecutive attachments reuse that result; status updates and traffic-feature translation still run independently for every attachment. A single target on a single listener bypasses the cache. Selectors remain eligible because one selector may resolve to several targets.

This is a single-entry, pass-local cache: no map, persistent state, or retention of all merged policies. It preserves StrategicMerge/JSONMerge behavior, parent selection, and policy precedence. Alternating parent pairs intentionally do not benefit.

Validation

  • go test -race -p 4 ./internal/gatewayapi -skip '^TestTranslate$/^securitypolicy-with-oidc-invalid-issuer$' passes. The excluded fixture calls a live external website and times out instead of returning its expected HTTP 404 in this environment. Confirmed the identical failure with unmodified upstream production code; no test expectations or CI exclusions were changed.
  • The repository-pinned golangci-lint passes for ./internal/gatewayapi.
  • New behavior tests cover StrategicMerge and JSONMerge, one/two targets, one/two listeners, shared/distinct parents, independent translated settings, unchanged source policy specs, and changing the same policy objects between passes.

Benchmarks

Compared with upstream f1f4888691b3c4faeee3d2f8e023750481a3da5d, using identical benchmark source and separate non-race test binaries. Linux/amd64, AMD EPYC-Milan, Go 1.27.1, GOMAXPROCS=4. Eight independent process pairs, alternating baseline/candidate order, 500 ms per case; medians and significance from benchstat.

The benchmarks include unique pairs, two targets, two listeners, both kinds of reuse together, alternating parents, unmerged policies, and sparse two-/ten-policy controls over 1,000 routes. Every iteration includes resetting pass-local mutations and performing the complete policy pass.

Case Baseline Change Time difference Bytes/op difference
Small unique 48.16 us 47.54 us not significant not significant
1,000 unique pairs 77.06 ms 76.25 ms not significant not significant
Two targets 91.27 ms 58.58 ms -35.82% -41.56%
Two listeners 235.4 ms 166.8 ms -29.17% -39.38%
Two targets and two listeners 264.1 ms 144.3 ms -45.37% -64.67%
Alternating parents 271.3 ms 275.3 ms not significant +0.05%
Two merged policies 4.493 ms 4.346 ms -3.28% -0.64%
Ten merged policies 6.308 ms 5.567 ms -11.75% -2.97%
Unmerged policies 91.48 ms 96.07 ms not significant not significant
Sparse two-policy control 424.6 us 419.1 us not significant not significant
Sparse ten-policy control 1.170 ms 1.163 ms not significant not significant

All non-small fixtures use 1,000 source routes and four matches per route. The main reuse cases save 40-65% of allocations. No-reuse controls show no significant timing regression; the unique-pair allocation count is 0.01% higher in this run. Reported significant changes use p < 0.05.

Reproduce individual samples with go test ./internal/gatewayapi -run '^$' -bench '^BenchmarkBackendTrafficPolicyMerge' -benchmem -benchtime=500ms. Apply only the test/benchmark source to the baseline and alternate runs before comparing with benchstat. These measure the policy pass, not Kubernetes-to-Envoy propagation latency.

No public API, generated code, or user-facing configuration changes. AI-assisted contribution; no automated reviewer requests were made.

CI Follow-up

All CI checks now pass, including lint, generation, coverage, conformance, end-to-end tests, and both benchmark jobs.

The initial v1.35.8 conformance job could not find envoy-gateway-system/proxy-config during suite setup; a recent main run has the same error. The initial v1.34.11 conformance job returned HTTP 400 for the valid URI-SAN subcase; main has also seen a valid-SAN HTTP 400 failure.

Both failed jobs and the dependent summary passed on a same-commit retry through the repository's /retest bot. No code or test expectations were changed.

@netlify

netlify Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

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

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

@cooper-oai
cooper-oai marked this pull request as ready for review September 29, 2026 22:37
@cooper-oai
cooper-oai requested a review from a team as a code owner September 29, 2026 22:37
@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.49%. Comparing base (3103d03) to head (14973ef).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10147      +/-   ##
==========================================
- Coverage   82.49%   82.49%   -0.01%     
==========================================
  Files         277      277              
  Lines       44211    44226      +15     
==========================================
+ Hits        36472    36483      +11     
- Misses       7738     7742       +4     
  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.

@cooper-oai

Copy link
Copy Markdown
Contributor Author

/retest

t.buildGatewayPolicyMap(backendTrafficPolicies, gateways, gatewayMap, gatewayPolicyMap, resources.ReferenceGrants)
// Build ListenerSet policy maps, which are needed when processing the policies targeting xRoutes.
t.buildListenerSetBackendTrafficPolicyMap(backendTrafficPolicies, listenerSetMap, listenerSetPolicyMap, resources)
var mergeCache backendTrafficPolicyMergeCache

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
var mergeCache backendTrafficPolicyMergeCache
var mergeCache *backendTrafficPolicyMergeCache

@zhaohuabing zhaohuabing added this to the v1.10.0 Release milestone Oct 26, 2026
Signed-off-by: zirain <[email protected]>

# Conflicts:
#	internal/gatewayapi/backendtrafficpolicy.go
@zhaohuabing
zhaohuabing merged commit f45fed8 into envoyproxy:main Nov 4, 2026
45 checks passed
zhaohuabing added a commit that referenced this pull request Nov 6, 2026
* docs: fix Gateway API links (#10456)

* docs: fix Gateway API links

Signed-off-by: zirain <[email protected]>

* fix

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
(cherry picked from commit 38bba5acd799bed36c6c4f2933fe3cad4f3db5e9)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* chore: fixing typo on examples/kubernetes/ext-auth-http-service.yaml (#10098)

Fixing typo

Fixing typo on console.log

Signed-off-by: allevimi <[email protected]>
Co-authored-by: kkk777-7 <[email protected]>
(cherry picked from commit b02cef4109dfccc27503b74a0178909e356cbbdb)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: add doc for SDS ref (#10367)

* docs: add doc for SDS ref

Signed-off-by: zirain <[email protected]>

* fix

Signed-off-by: zirain <[email protected]>

* comments

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
(cherry picked from commit 314be2117341d55b3988febc4048daf6ebccd940)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* test(e2e): apply gRPC health check routes once the backend serves (#10405)

BackendHealthCheckActiveGRPC applied grpc-health-backend together with
its routes and BackendTrafficPolicies. EG publishes the endpoint of a pod
that is not Ready yet as draining, so Envoy received the health checked
clusters, and ran each first health check, while the gRPC server was
still starting. That check failed with a network error, and Envoy checks
a cluster that has seen no traffic again only after no_traffic_interval
(60s), past the 30s the test waits for a success.

Give the backend a gRPC readiness probe, wait for it, and only then apply
the policies and routes, policies first: a route processed before its
policy yields a cluster without the health check, and the update that
adds it waits for EDS until initial_fetch_timeout (15s).

Signed-off-by: Alexej Disterhoft <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit 79c64789ecc53cbf4d3558ef71e3d03b87dc5f23)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix(translator): ignore invalid EnvoyProxy fields instead of rejecting it (#10446)

* fix(translator): ignore invalid EnvoyProxy fields instead of rejecting it

Signed-off-by: zirain <[email protected]>

* release notes

Signed-off-by: zirain <[email protected]>

* fix

Signed-off-by: zirain <[email protected]>

* fix review

Signed-off-by: zirain <[email protected]>

* fix review

Signed-off-by: zirain <[email protected]>

* Clear stale warnings on fatal validation

Signed-off-by: zirain <[email protected]>

* Drop ALS sinks whose configuration is absent

Signed-off-by: zirain <[email protected]>

* fix test

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
(cherry picked from commit 4f2c7c331b9ba8786b487ff8ce6096d9eae1dadb)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix(metrics): remove watchable_depth, which always reported 0 (#9860)

* fix(metrics): record watchable_depth as the coalesced update count

Signed-off-by: somaz <[email protected]>

* fix(metrics): reset watchable_depth once the batch has been handled

Signed-off-by: somaz <[email protected]>

* fix(metrics): remove watchable_depth and repoint the dashboards that used it

Signed-off-by: somaz <[email protected]>

---------

Signed-off-by: somaz <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit 6d68b367e85fac1b9a8fd67e2442db0d7d05f0ef)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* perf(translator): index repeated backend policy route lookups (#10146)

* [envoy-gateway] Index repeated backend policy route lookups [ci changed_files]

Signed-off-by: Cooper Gamble <[email protected]>

* [envoy-gateway] Note backend policy route indexing [ci changed_files]

Signed-off-by: Cooper Gamble <[email protected]>

---------

Signed-off-by: Cooper Gamble <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit cb88d3d5e63770622a6c2c3c522d36c1a1a9ae1d)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix(e2e): poll until endpoint override takes effect (#10264)

* fix(e2e): poll until endpoint override takes effect

The valid-pod-IP subtest of EndpointOverrideLoadBalancing asserted on the
very first request. The BackendTrafficPolicy being Accepted doesn't mean
Envoy has received the override config yet, so early requests could still
be load-balanced to another pod and fail the test.

Use pollTrafficTest so the check retries until all requests reach the
expected pod.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix nit

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit fc335c2eda6ce5a897c9e9cbf6dfcb78b066dd87)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: local rate limit supports Distinct matching (#9975)

* docs: local rate limit supports Distinct matching

The local rate limit task page still says Distinct matching is not
supported and points users to global rate limiting. Distinct matching for
local rate limits shipped in v1.4.0 (#5319). Replace the note with a short
"Rate Limit Distinct Clients" example and describe what per-proxy buckets
mean, on the latest page and on the v1.8 and v1.9 pages.

Signed-off-by: Andreea Popescu <[email protected]>

* docs: qualify Distinct local rate limits

Review feedback on the new section: a sourceCIDR selector keys on the
client address Envoy detects, so deployments behind a proxy need
clientIPDetection first or every client shares one bucket; and the
per-value buckets live in a bounded least recently used cache, so an
evicted value returns with a full bucket. Say both, without a number for
the cache size, so the text stays true across releases.

Signed-off-by: Andreea Popescu <[email protected]>

* docs: state Distinct cache size per release

#9974 shipped in v1.9.2 and v1.8.5, so the route-level cache size is
known: 10,000 entries from those releases, 20 before. Say so on the
latest, v1.9 and v1.8 pages instead of leaving the size unstated.

Signed-off-by: Andreea Popescu <[email protected]>

---------

Signed-off-by: Andreea Popescu <[email protected]>
(cherry picked from commit 323e368f7d8f5a6fb16f24b008a27a4874f7ed6d)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: report clear ownership conflict for unmanaged same-name Deployment/DaemonSet in GatewayNamespace mode (#9470)

* fix: report clear ownership conflict for unmanaged same-name Deployment/DaemonSet in GatewayNamespace mode

In GatewayNamespace mode, when a pre-existing, unmanaged Deployment or DaemonSet
shares the Gateway's name (e.g. an unrelated nginx Deployment), the reconcile
surfaced a misleading "illegal change in a custom label of EnvoyProxy" error
instead of a clear ownership-conflict error.

This happened because createOrUpdateDeployment/createOrUpdateDaemonSet ran the
selector-migration workaround before the ownership check: an unmanaged same-name
resource with a different selector hit the selector-migration error and never
reached the ownership guard added by #9215.

Move checkOwnership to run right after the existing Get succeeds and before the
selector-migration block, so unmanaged collisions return "already exists and is
not owned by this Gateway" and the pre-existing resource is left untouched.
Non-GatewayNamespace mode is unaffected (checkOwnership returns nil immediately),
so the legitimate custom-label migration error path is preserved.

Fixes #9132

Signed-off-by: liuhy <[email protected]>
Co-Authored-By: Claude <[email protected]>

* fix: detect unmanaged same-name infra via uncached API read in GatewayNamespace mode

Address review feedback on #9470 (Codex P2 + Copilot).

The production controller cache filters DaemonSets (and HPA/PDB) by the envoy
managed-label selector, so an unmanaged same-name DaemonSet is absent from the
cache: checkOwnership's cached Get returned NotFound and the ownership guard
never ran, so applyIfOwned proceeded to server-side apply and users still got
an API/immutability error or adoption instead of the ownership-conflict error.
The earlier unit tests used an unfiltered fake client and so missed this.

Wire the uncached API reader (mgr.GetAPIReader()) through
KubernetesClientHolder -> Provider.GetAPIReader -> Infra.apiReader, and use it
for the existence read in checkOwnership (falling back to the cached client
when no API reader is configured, e.g. in unit tests). This makes the
ownership-conflict detection reliable for all resource kinds, including the
label-filtered ones, matching the intent claimed by #9215.

Also set replicas=0 on the e2e pre-existing unmanaged Deployment to keep it
inert (no scheduling/image-pull), per Copilot review — the collision behavior
under test needs no Pods to run.

Tests:
- TestCheckOwnership_UsesAPIReaderWhenCacheMisses: cached Get returns NotFound
  (simulating the filtered cache) while the API reader sees the unmanaged
  resource; asserts the ownership error is surfaced. Verified to FAIL on the
  pre-API-reader code.
- TestCheckOwnership_FallsBackToCachedClientWhenNoAPIReader: preserves the
  cached-client path used by the existing tests.
- Existing unit + e2e tests still pass.

Signed-off-by: liuhy <[email protected]>
Co-Authored-By: Claude <[email protected]>

* test(e2e): replace ptr.To with new() to satisfy forbidigo lint

CI lint failed on gateway_namespace_ownership.go:183 because
forbidigo (tools/linter/golangci-lint/.golangci.yml) forbids
ptr.To from k8s.io/utils/ptr in favor of the new() builtin.

ptr.To[int32](0) and new(int32) are equivalent (both yield a
*int32 to zero), so switch to new(int32) and drop the now-unused
import. The APIReader cache-miss fix is unchanged.

Signed-off-by: liuhy <[email protected]>
Co-Authored-By: Claude <[email protected]>

* fix: limit uncached ownership reads

Signed-off-by: liuhy <[email protected]>

---------

Signed-off-by: liuhy <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit a33257784342f53c6ff2b48201fbb239481bdd82)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: add EnvoyPatchPolicy cluster patching example (#9949)

* docs: add EnvoyPatchPolicy cluster patching example

Document how to patch Cluster resources with EnvoyPatchPolicy,
including cluster name format and a working load balancing policy
example using replace instead of add.

Fixes #7306

Signed-off-by: amarkdotdev <[email protected]>
Signed-off-by: Aaron <[email protected]>

* docs: address Codex review nits on cluster patch example

Reuse Quickstart default/backend resources, drop unsupported targetRef
namespace, fix egctl translate invocation, and include httproute prefix
in cluster name examples.

Signed-off-by: Aaron <[email protected]>

---------

Signed-off-by: amarkdotdev <[email protected]>
Signed-off-by: Aaron <[email protected]>
(cherry picked from commit 4255dc38b528aa2620416bde850441673e897164)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix(lua): validate numeric path arguments in the lua sandbox (#10411)

Signed-off-by: RAJATH MOHARE <[email protected]>
Co-authored-by: Rudrakh Panigrahi <[email protected]>
(cherry picked from commit dad807297baa7027566c3de579be5f0d70348b25)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: document overload manager defaults (#10161)

* docs: document overload manager defaults

Signed-off-by: Matheus Sousa <[email protected]>

* docs: scope overload defaults and fix HPA memory example

Signed-off-by: Matheus Sousa <[email protected]>

---------

Signed-off-by: Matheus Sousa <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit ad04d02b5ac73fd14cce0d790f526cab50dec5f0)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: clarify direct response body size (#10073)

* docs: clarify direct response body size

Signed-off-by: simonfelding <[email protected]>

* docs: simplify direct response size note

Signed-off-by: simonfelding <[email protected]>

---------

Signed-off-by: simonfelding <[email protected]>
(cherry picked from commit 7fa069b795b6da15f9366b33dc852ab52fead0c4)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* perf: index cluster names during xDS construction (#10483)

Avoid repeatedly scanning existing clusters when building xDS resources.
Maintain a name index during construction, preserving resource order and
first-match lookup behavior. Update it on additions, replacements and bulk
updates, and drop it before JSON patches and extension post-translation
hooks can rename resources in place.

The 10,000-cluster, eight-reference construction benchmark improves from
about 621ms without the index to 8.9ms with it (median of five local runs).
The index adds about 0.42 MiB of live heap at 10,000 clusters.

Validation: focused xDS type and translator tests, including race and
coverage; local cluster-construction benchmarks; resource replacement,
deletion and rejected-resource regression coverage.

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit d11fe0951d1f546f955858e59fffacc4c41cc5d3)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* perf: translate GatewayClasses concurrently (#10481)

Translate up to two GatewayClasses per provider update so a smaller class can
publish its IR while another class is still translating. Lock only shared key
tracking and metric counters, merge statuses in input order, and join workers
before processing the next update. Preserve existing IR when translation or
publication panics.

Validated with go test -race ./internal/gatewayapi/runner and golangci-lint on the
GatewayClass runner diff.

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit b3465b385b32cd4979da093e35e64c88fc19b5fc)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: add Verfahrensdokumentation.pro as an adopter (#10486)

Signed-off-by: Nico Bleiler <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 529f6a82cf85498a2d2a8744acecb7a019decda7)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* chore: mute OSV scanner (#10487)

Signed-off-by: zirain <[email protected]>
(cherry picked from commit 3103d038c787e3aeef4bde8cd845c0c05df79d17)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: name the jwt requirement after its owning SecurityPolicy (#10442)

* fix: name the jwt requirement after its owning SecurityPolicy

Signed-off-by: kkk777-7 <[email protected]>

* renumber release notes

Signed-off-by: kkk777-7 <[email protected]>

* fix: name the jwt requirement after the policies applied to the route

Signed-off-by: kkk777-7 <[email protected]>

* fix: pick the local JWKS ConfigMap fallback key deterministically

Signed-off-by: kkk777-7 <[email protected]>

---------

Signed-off-by: kkk777-7 <[email protected]>
(cherry picked from commit fca6beea9950a107feb77d8d613d65ef16be8e7e)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: drop stale route parent status when a parentRef is removed from spec (#9587)

* fix: drop stale route parent status when a parentRef is removed from spec

Motivation:
When a Route's spec.parentRefs is edited to remove a reference to a
Gateway, the RouteParentStatus entry for that old parentRef used to
linger in status.parents forever (envoyproxy/gateway#774). The status
subresource kept reporting a parent condition (e.g. Accepted=True) for
a Gateway the route no longer references at all.

This is a status-reporting bug only: it does not affect dataplane
behavior, since Envoy's xDS config is derived from the current spec /
attached-routes computation, not from the status subresource. The
route's live parentRefs were always handled correctly for traffic;
only the stale status.parents entry was left behind.

Root cause: mergeRouteParentStatus() reconciles the route's on-cluster
status.Parents ("old") with what the translator computed for this
particular reconciliation batch ("new"). PR #6812 taught it to drop
old entries not in "new" when they belonged to our own controller,
fixing #774, but that broke multi-parent routes because a single
batch may only touch some of a route's parents (PR #7068, issue
entry absent from "new", which silently reintroduced the #774
staleness bug.

Approach:
Thread the route's live spec.ParentRefs (already available in the
status-updater Mutator, fetched immediately before the merge) into
mergeRouteParentStatus as a new parameter. An old status entry absent
from "new" is now kept only if its parentRef is still present in
spec.ParentRefs (multi-parent case, not touched this batch); otherwise
it's dropped as stale. This keeps both prior fixes intact at once.

Validation:
go build ./...
go test ./internal/provider/kubernetes/...
Both pass, including the existing Test_mergeRouteParentStatus suite
(updated for the new parameter) plus a new case that reproduces #774:
a parentRef removed from spec.ParentRefs no longer survives the merge.

Fixes #774

Signed-off-by: Pujitha Paladugu <[email protected]>

* test: exercise updateStatusFromSubscriptions HTTPRoute path for #774 fix

Adds a regression test that drives the real subscription/mutator wiring
(watchable.Map + fake Updater) instead of calling mergeRouteParentStatus
directly, so the HTTPRoute call site that threads spec.ParentRefs through
is covered. Addresses the codecov/patch check, which flagged the new
call sites added across status.go as uncovered.

Signed-off-by: Pujitha Paladugu <[email protected]>

* docs: add release-note fragment for stale route parent status fix

Per Codex review feedback on PR #9587, add the missing bug-fix
fragment under release-notes/current/bug_fixes/.

Signed-off-by: Pujitha Paladugu <[email protected]>

* fix: filter new RouteParentStatus entries against spec.ParentRefs too

mergeRouteParentStatus already dropped stale old-status entries no
longer in spec.ParentRefs, but the second loop appended unmatched new
entries unconditionally. Since new is computed asynchronously and can
lag behind the live spec read at patch-apply time, a status entry for
a parentRef removed from spec in between could leak back into the
merged result. Apply the same spec-membership filter to new.

Signed-off-by: Pujitha Paladugu <[email protected]>

* fix: only drop stale route parent status owned by our controller

Entries in status.parents written by other controllers are always kept,
even if their parentRef is no longer in spec.parentRefs; only Envoy
Gateway's own stale entries are dropped.

Signed-off-by: Pujitha Paladugu <[email protected]>

* test: match fakeUpdater.Send to the context-aware Updater interface

Updater.Send now takes a context.Context on main, so the test fake used by
Test_updateStatusFromSubscriptions_HTTPRoute no longer satisfied the
interface once the branch was rebased.

Signed-off-by: Pujitha Paladugu <[email protected]>

* fix: drop matched route parent status when parentRef is removed from spec

Signed-off-by: Pujitha Paladugu <[email protected]>

---------

Signed-off-by: Pujitha Paladugu <[email protected]>
Co-authored-by: Pujitha Paladugu <[email protected]>
(cherry picked from commit d8023843ed272abec231e30b95768bcf63c92d56)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* Update report link for crashes and security issues (#10488)

Signed-off-by: zirain <[email protected]>
(cherry picked from commit 3ddec9d2817585aa897d51e1efb71dba91ab4fa7)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: bound compressor minContentLength before narrowing to uint32 (#9852)

* fix: bound compressor minContentLength before narrowing to uint32

Signed-off-by: Javid Khan <[email protected]>
(cherry picked from commit c1d70ccd83521aafac046e33582dd8f50b988d15)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps-dev): bump autoprefixer from 10.6.1 to 10.6.2 in /site (#10500)

Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.6.1 to 10.6.2.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.6.1...10.6.2)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-version: 10.6.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 00940a62dece43e87c95353a8bf744c76bd0ecb3)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump distroless/base-nossl from `6a2a334` to `e6b0f82` in /tools/docker/envoy-gateway (#10498)

build(deps): bump distroless/base-nossl in /tools/docker/envoy-gateway

Bumps distroless/base-nossl from `6a2a334` to `e6b0f82`.

---
updated-dependencies:
- dependency-name: distroless/base-nossl
  dependency-version: nonroot
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit c267eaae4c2bf40244a5c4e1d02d9ed31b774260)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump busybox from `fd7dc98` to `a46257e` in /tools/docker/envoy-gateway (#10499)

build(deps): bump busybox in /tools/docker/envoy-gateway

Bumps busybox from `fd7dc98` to `a46257e`.

---
updated-dependencies:
- dependency-name: busybox
  dependency-version: a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 9c677e0f5bd09e432f37fd35287d468d13cd8ddf)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump sigs.k8s.io/gateway-api from 1.6.3 to 1.7.0 in /examples/extension-server (#10511)

build(deps): bump sigs.k8s.io/gateway-api in /examples/extension-server

Bumps [sigs.k8s.io/gateway-api](https://github.com/kubernetes-sigs/gateway-api) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/kubernetes-sigs/gateway-api/releases)
- [Changelog](https://github.com/kubernetes-sigs/gateway-api/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/gateway-api/compare/v1.6.3...v1.7.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/gateway-api
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit a9488202c0add875081be2b0d526e4179992f08f)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* perf(translator): reuse consecutive backend policy merges (#10147)

* [envoy-gateway] Reuse consecutive backend policy merges [ci changed_files]

Signed-off-by: Cooper Gamble <[email protected]>

* [envoy-gateway] Note repeated policy merge reuse [ci changed_files]

Signed-off-by: Cooper Gamble <[email protected]>

---------

Signed-off-by: Cooper Gamble <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit f45fed8f3b97c225e005981f485e94e4760994ae)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* perf: skip deep copy when listing policies in the k8s provider (#10164)

List the policy CRDs with client.UnsafeDisableDeepCopy and set the GVK on each
listed item, since controller-runtime only populates TypeMeta when it deep-copies.

Fixes #9781

Signed-off-by: stillya <[email protected]>
(cherry picked from commit b154c381a3e5ba2746b014d61486cb6a5937654c)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* test: add proxy reconnect config resilience coverage (#10184)

* test: add proxy reconnect config resilience coverage

Signed-off-by: Ashok Gopalakrishnan <[email protected]>

* test: wait for config processing before proxy reconnect

Signed-off-by: Ashok Gopalakrishnan <[email protected]>

* test: strengthen proxy reconnect resilience checks

Signed-off-by: Ashok Gopalakrishnan <[email protected]>

* test: wait for xds snapshot before proxy reconnect

Signed-off-by: Ashok Gopalakrishnan <[email protected]>

---------

Signed-off-by: Ashok Gopalakrishnan <[email protected]>
(cherry picked from commit bf4533c7bd6120699e386ca83d4f4a98401658c5)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: check group when dispatching HTTPRouteFilter extensionRefs (#10395)

* fix: check group when dispatching HTTPRouteFilter extensionRefs

Signed-off-by: kkk777-7 <[email protected]>

* renumber release note

Signed-off-by: kkk777-7 <[email protected]>

---------

Signed-off-by: kkk777-7 <[email protected]>
(cherry picked from commit 4b12875056f0bf93ee11eef0dc5cfd3181e06ac0)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* ci: treat abandoned as false (#10287)

Signed-off-by: zirain <[email protected]>
(cherry picked from commit c2aaf5fc231a7fc9fe29fc8a14e74ecdef510560)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump jpmcb/prow-github-actions from 3.0.1 to 3.5.0 in the actions group across 1 directory (#10514)

build(deps): bump jpmcb/prow-github-actions

Bumps the actions group with 1 update in the / directory: [jpmcb/prow-github-actions](https://github.com/jpmcb/prow-github-actions).

Updates `jpmcb/prow-github-actions` from 3.0.1 to 3.5.0
- [Release notes](https://github.com/jpmcb/prow-github-actions/releases)
- [Commits](https://github.com/jpmcb/prow-github-actions/compare/187c5e3cd95a329c43448e1bdb3b1f5249232e44...a192ee15687d4ede4d553ff0929b2b296666afd7)

---
updated-dependencies:
- dependency-name: jpmcb/prow-github-actions
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 86dd45db1537a5a8020d059851393abebfe9de1e)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump the gomod group across 10 directories with 4 updates (#10508)

* build(deps): bump the gomod group across 10 directories with 4 updates

Bumps the gomod group with 3 updates in the / directory: [github.com/ohler55/ojg](https://github.com/ohler55/ojg), [github.com/replicatedhq/troubleshoot](https://github.com/replicatedhq/troubleshoot) and [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/backend-utilization directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/envoy-ext-auth directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/extension-server directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/grpc-ext-proc directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/grpc-health-backend directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/preserve-case-backend directory: [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp).
Bumps the gomod group with 1 update in the /examples/remote-infra directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/sds-test-server directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the gomod group with 1 update in the /examples/simple-extension-server directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).

Updates `github.com/ohler55/ojg` from 1.28.8 to 1.28.9
- [Release notes](https://github.com/ohler55/ojg/releases)
- [Changelog](https://github.com/ohler55/ojg/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/ohler55/ojg/compare/v1.28.8...v1.28.9)

Updates `github.com/replicatedhq/troubleshoot` from 0.134.2 to 0.134.3
- [Release notes](https://github.com/replicatedhq/troubleshoot/releases)
- [Commits](https://github.com/replicatedhq/troubleshoot/compare/v0.134.2...v0.134.3)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `github.com/valyala/fasthttp` from 1.76.0 to 1.77.0
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](https://github.com/valyala/fasthttp/compare/v1.76.0...v1.77.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

Updates `google.golang.org/grpc` from 1.84.0 to 1.85.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

---
updated-dependencies:
- dependency-name: github.com/ohler55/ojg
  dependency-version: 1.28.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod
- dependency-name: github.com/replicatedhq/troubleshoot
  dependency-version: 0.134.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: github.com/valyala/fasthttp
  dependency-version: 1.77.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix go mod

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 271851b5942b9576d35c211316bf75bd272528ce)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix(extension): select the Secret hook owner first and support extensionManagers offline (#10490)

* fix(extension): select the Secret hook owner first and support extensionManagers offline

When several extension managers register the Secret hook, every manager's client was built before the owner was known, so a manager that failed to connect blocked certificate resolution for all extensions. The owning extension is now selected by group and kind first, and only its client is built.

The offline controller only read the singular extensionManager, so extension kinds configured through extensionManagers were not registered in standalone mode. It now uses GetExtensionManagers(), like the Kubernetes controller and the file loader.

Signed-off-by: Weiwei Li <[email protected]>

* fix(gatewayapi): keep configured order of extension and Secret certificates

Signed-off-by: Weiwei Li <[email protected]>

---------

Signed-off-by: Weiwei Li <[email protected]>
(cherry picked from commit 497a83ea14675b8244983d70ae6c0305eb276720)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

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

* feat(translator): report ineffective backend priority in route status

Signed-off-by: kkk777-7 <[email protected]>

* renumber release notes

Signed-off-by: kkk777-7 <[email protected]>

* remove dead code

Signed-off-by: kkk777-7 <[email protected]>

* fix: treat custom backends as usable when detecting priority failover

Signed-off-by: kkk777-7 <[email protected]>

---------

Signed-off-by: kkk777-7 <[email protected]>
(cherry picked from commit 5dae240edc5c4e4bb7c66c21dd1fb15eb62cb9c6)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* ci: bump trivy to v0.76.1 (#10522)

trivy-action is already on its latest release but still installs Trivy
v0.70.0 by default. Pin the scanner to v0.76.1 so the image scan uses a
current vulnerability matcher.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 186776ecad8a3892e7c403d50c6c069e58a4bb9d)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: fall back to last successful OIDC discovery when refetch fails (#10020)

The OIDC discovery cache is re-created on every translation, so a
transient failure fetching <issuer>/.well-known/openid-configuration
during any reconciliation made every route protected by that issuer
return HTTP 500 until a later translation succeeded.

Retain the last successfully discovered OpenID configuration per issuer
in a process-wide, mutex-guarded, size-capped LRU cache and fall back to
it (logging the error) when discovery fails. Issuers that were never
discovered successfully still surface the error, and errors in the local
issuer or TLS configuration are never masked. A discovered token
endpoint the policy overrides is not validated before the result is
retained.

Signed-off-by: KR Ravindra <[email protected]>
(cherry picked from commit 4026ff41fd9fbd7fb5add135e440fb44ed693881)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump the helm group across 1 directory with 3 updates (#10507)

* build(deps): bump the helm group across 1 directory with 3 updates

Bumps the helm group with 3 updates in the /charts/gateway-addons-helm directory: alloy, opentelemetry-collector and otel/opentelemetry-collector-contrib.

Updates `alloy` from 1.14.3 to 1.15.0

Updates `opentelemetry-collector` from 0.178.0 to 0.178.2

Updates `otel/opentelemetry-collector-contrib` from 0.163.2 to 0.164.0

---
updated-dependencies:
- dependency-name: alloy
  dependency-version: 1.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: helm
- dependency-name: opentelemetry-collector
  dependency-version: 0.178.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: helm
- dependency-name: otel/opentelemetry-collector-contrib
  dependency-version: 0.164.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: helm
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix-gen

Signed-off-by: zhaohuabing <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: zhaohuabing <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: zhaohuabing <[email protected]>
(cherry picked from commit a5e9d8becf8c4bfdd4abc7887b602c78ade674ef)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: retry status updates on transient errors (#10449)

* fix: retry status updates on transient errors

The status writer only retried conflicts, so a timeout, throttling or a brief
API server outage dropped the update. Since the same status isn't re-sent,
the object kept a stale status until something else changed. Transient errors
are now retried with backoff, and each attempt gets its own timeout and stops
on shutdown.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: name release note after PR number

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: drop the per-attempt timeout from status retries

The timeout made client-side rate limiting fail early with an error that isn't
treated as transient, and cancelled in-flight writes on shutdown. The API calls
go back to a background context, and the handler's context now only stops the
backoff wait. Tests skip the real backoff waits.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: use one backoff for status conflicts and transient errors

Conflicts and transient errors now share a single retry loop instead of a
nested one, so the worst case stays at about 1.5s. The loop uses
wait.ExponentialBackoffWithContext, which already stops waiting on shutdown.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: go back to retry.OnError for status retries

Use retry.OnError with the shared backoff, the same pattern crdExists uses,
so the code reads like it did before. Each attempt checks for shutdown first,
so nothing is written once the handler stops.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: keep the status retry change minimal

Go back to the original retry call and only add transient errors to what it
retries, with a longer backoff so they have time to clear. The shutdown
handling and the refactor are dropped to keep the change small.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* test: drop the status updater retry test

Remove the new test file to keep this change small.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: count transient status retries under their own reason

Transient retries were counted as errors, so one lost update showed up as
several and a retry that later succeeded still looked like a failure. They
now use a separate transient reason, and error only counts updates that fail.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: treat connection-level API errors as transient

A refused or reset connection comes back from client-go as a transport error,
not a Kubernetes status error, so status writes gave up on the first attempt
while the API server was briefly unreachable. Widening isTransientError covers
both the status updater and the controller, which now requeues instead of
reporting a resource as invalid on a network blip.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit c89fb11108e34686666307eba4b8230ab65db8b1)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump the k8s-io group across 2 directories with 6 updates (#10509)

* build(deps): bump the k8s-io group across 2 directories with 6 updates

Bumps the k8s-io group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.37.1` | `0.37.2` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) | `0.37.1` | `0.37.2` |
| [k8s.io/apiserver](https://github.com/kubernetes/apiserver) | `0.37.1` | `0.37.2` |
| [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) | `0.37.1` | `0.37.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.37.1` | `0.37.2` |
| [k8s.io/kubectl](https://github.com/kubernetes/kubectl) | `0.37.1` | `0.37.2` |

Bumps the k8s-io group with 1 update in the /examples/remote-infra directory: [k8s.io/api](https://github.com/kubernetes/api).

Updates `k8s.io/api` from 0.37.1 to 0.37.2
- [Commits](https://github.com/kubernetes/api/compare/v0.37.1...v0.37.2)

Updates `k8s.io/apiextensions-apiserver` from 0.37.1 to 0.37.2
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases)
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.37.1...v0.37.2)

Updates `k8s.io/apiserver` from 0.37.1 to 0.37.2
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.37.1...v0.37.2)

Updates `k8s.io/cli-runtime` from 0.37.1 to 0.37.2
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.37.1...v0.37.2)

Updates `k8s.io/client-go` from 0.37.1 to 0.37.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.37.1...v0.37.2)

Updates `k8s.io/kubectl` from 0.37.1 to 0.37.2
- [Commits](https://github.com/kubernetes/kubectl/compare/v0.37.1...v0.37.2)

Updates `k8s.io/api` from 0.37.1 to 0.37.2
- [Commits](https://github.com/kubernetes/api/compare/v0.37.1...v0.37.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apiextensions-apiserver
  dependency-version: 0.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apiserver
  dependency-version: 0.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/cli-runtime
  dependency-version: 0.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-version: 0.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kubectl
  dependency-version: 0.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/api
  dependency-version: 0.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix go mod

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 639aa2b0475029b182dfb146a1be78b66c7c34a1)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* e2e: fix WeightedZones flaky (#10496)

Signed-off-by: zirain <[email protected]>
(cherry picked from commit 8dd6b0ec6d6a3c96c9fd863ce3e306eefa3c6c89)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: extension backend dispatch (#10256)

* fix: extension backend dispatch

Signed-off-by: zirain <[email protected]>

* update docs

Signed-off-by: zirain <[email protected]>

* fix review comments

Signed-off-by: zirain <[email protected]>

* test: build ExtensionRefIndex in custom backend unit tests

#10321 moved custom backend lookup to an index built in Translate(), so
tests that call processDestination directly must populate it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 1564810c93c8f4616efdb606a284a3d0c7cc5a62)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* ci: pin alloy chart to 1.14.3 (#10526)

ci: pin alloy chart to 1.14.3 (#10525)

Alloy v1.21.3 seems to stall log shipping to Loki, which breaks the e2e
health check event log tests in about half the cells. Pin the chart back
and keep dependabot from bumping it until the root cause is sorted out.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 73db23a3f1a0685cb392c04e2a16374d1da35b66)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* chore: ignore linkedin.com (#10527)

Signed-off-by: zirain <[email protected]>
(cherry picked from commit 2ffc5d9ca2339ca283c4f035da6437ee4239efaf)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* ci: extend dependabot alloy ignore to chart 1.14.4 (#10530)

Alloy chart 1.14.4 is a patch release that already ships Alloy v1.21.3, the
version that breaks the health check event log e2e tests. The existing ignore
only started at 1.15.0, so dependabot opened #10529 anyway.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit fc0abcb58b20a1c60861cf77ec19b27d48cee491)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: bump golang.org/x/crypto to fix GO-2026-5932 (#10523)

Trivy flags x/crypto v0.58.0 in the envoy-gateway binary for GO-2026-5932.
There is no tagged release with the fix yet, so this moves to the upstream
commit that splits openpgp out of x/crypto. Switch back to a tag once one ships.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit d82a6b6920e3267697e35c5e45893e92e10870be)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* build(deps): bump github.com/avast/retry-go/v5 from 5.0.0 to 5.0.1 in the gomod group across 1 directory (#10534)

* build(deps): bump github.com/avast/retry-go/v5

Bumps the gomod group with 1 update in the / directory: [github.com/avast/retry-go/v5](https://github.com/avast/retry-go).

Updates `github.com/avast/retry-go/v5` from 5.0.0 to 5.0.1
- [Release notes](https://github.com/avast/retry-go/releases)
- [Commits](https://github.com/avast/retry-go/compare/5.0.0...5.0.1)

---
updated-dependencies:
- dependency-name: github.com/avast/retry-go/v5
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix lint

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: zirain <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: zirain <[email protected]>
(cherry picked from commit cfb4c251e82a8c6e7f2d8271633c2d488744f609)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* docs: v1.10.0 release notes and announcement (#10536)

docs: v1.10.0 release notes, announcement and versioned docs

Add the v1.10.0 release notes (rc.1 plus everything merged since), the
announcement, the v1.10 docs snapshot, and the version bumps in the site config.
Also fix a few spots that compared version strings as plain text, so v1.10
no longer sorts before v1.9 or matches the EOL v1.1 entry.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit dcd65a47ce91cd3dea3fa467661191bbe6c199a3)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* test: give resilience xDS disconnect check more time (#10538)

The proxy reconnect test blocks xDS with a NetworkPolicy, but that only drops
packets on the open connection, so Envoy notices through its 30s keepalive.
With jitter, the ping timeout and the Prometheus scrape that often runs past
the one-minute wait, so the disconnect check now waits up to two minutes.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 1d179989f9205dfe06aa9bac9871ac16ab2bbf8a)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* test: use isolated schemes in route processing tests (#10539)

The HTTPRoute and GRPCRoute processing tests shared the global scheme with
their fake clients, which register unknown extension types on the fly. That
write raced with informers left running by other tests in the package and
flaked coverage-test under the race detector.

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 3e91fbc9781c39c6b0066ddf0a9b6bb473e358f8)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: allevimi <[email protected]>
Signed-off-by: Alexej Disterhoft <[email protected]>
Signed-off-by: somaz <[email protected]>
Signed-off-by: Cooper Gamble <[email protected]>
Signed-off-by: Andreea Popescu <[email protected]>
Signed-off-by: liuhy <[email protected]>
Signed-off-by: amarkdotdev <[email protected]>
Signed-off-by: Aaron <[email protected]>
Signed-off-by: RAJATH MOHARE <[email protected]>
Signed-off-by: Matheus Sousa <[email protected]>
Signed-off-by: simonfelding <[email protected]>
Signed-off-by: Arko Dasgupta <[email protected]>
Signed-off-by: Nico Bleiler <[email protected]>
Signed-off-by: kkk777-7 <[email protected]>
Signed-off-by: Pujitha Paladugu <[email protected]>
Signed-off-by: Javid Khan <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: stillya <[email protected]>
Signed-off-by: Ashok Gopalakrishnan <[email protected]>
Signed-off-by: Weiwei Li <[email protected]>
Signed-off-by: KR Ravindra <[email protected]>
Signed-off-by: zhaohuabing <[email protected]>
Co-authored-by: zirain <[email protected]>
Co-authored-by: allevimi <[email protected]>
Co-authored-by: kkk777-7 <[email protected]>
Co-authored-by: Alexej Disterhoft <[email protected]>
Co-authored-by: somaz <[email protected]>
Co-authored-by: cooper-oai <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: andreeapid <[email protected]>
Co-authored-by: aias00 <[email protected]>
Co-authored-by: Aaron Mark <[email protected]>
Co-authored-by: rajath201 <[email protected]>
Co-authored-by: Rudrakh Panigrahi <[email protected]>
Co-authored-by: Matheus Sousa <[email protected]>
Co-authored-by: simonfelding <[email protected]>
Co-authored-by: Arko Dasgupta <[email protected]>
Co-authored-by: Nico Bleiler <[email protected]>
Co-authored-by: Kota Kimura <[email protected]>
Co-authored-by: Pujitha Paladugu <[email protected]>
Co-authored-by: Pujitha Paladugu <[email protected]>
Co-authored-by: Javid Khan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Starchenko Ilya <[email protected]>
Co-authored-by: Ashok Gopalakrishnan <[email protected]>
Co-authored-by: wweiwei-li <[email protected]>
Co-authored-by: KR Ravindra <[email protected]>
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.

3 participants