]> git.feebdaed.xyz Git - 0xmirror/grpc-go.git/commit
xds/resolver: pass route's auto_host_rewrite to LB picker (gRFC A81) (#8740)
authorPranjali-2501 <87357388+Pranjali-2501@users.noreply.github.com>
Thu, 11 Dec 2025 05:53:21 +0000 (11:23 +0530)
committerGitHub <noreply@github.com>
Thu, 11 Dec 2025 05:53:21 +0000 (11:23 +0530)
commitd35cedde1ee806f3c578aba8c59bec7117ae0bc3
tree23829f1301174e873c39dfa051a6b157d9bccfdb
parentd931fdc379623f36d2050487887f5465a18b7912
xds/resolver: pass route's auto_host_rewrite to LB picker (gRFC A81) (#8740)

This PR implements the ConfigSelector changes required for [gRFC
A81](https://github.com/grpc/proposal/blob/master/A81-xds-authority-rewriting.md).

It ensures that the `auto_host_rewrite` field from the xDS Route
Configuration is correctly propagated through the resolver and made
available to the Load Balancer picker via the RPC context.

### Key Changes:

* Pass the `AutoHostRewrite` field value from `Route` struct via RPC
context.
* Add helper functions for `AutoHostRewrite` in
`internal/xds/balancer/cluserimpl/picker.go`.
* Update `ConfigSelector.SelectConfig` to pass the `AutoHostRewrite`
boolean in RPC context.

RELEASE NOTES: None
internal/xds/balancer/clusterimpl/picker.go
internal/xds/resolver/serviceconfig.go
internal/xds/resolver/xds_resolver.go
internal/xds/resolver/xds_resolver_test.go