[API] Allow routing to the cluster specified in the request_header for weighted cluster case. (#17673)
- Add cluster header to weighted cluster proto. This enables the ability of routing to the cluster specified in the request_header for weighted cluster (i.e. multiple upstreams) case. name and cluster_header will be oneof cluster_specifiter field in the next release. Currently, they can only be regular fields due to compatibility issue. - Add the validation logic (PGV annotation + runtime check) - Add 3 unit tests for invalid weighted cluster configs. Note: I have implemented the core implementation and tested it with end-to-end integration test/example locally. Those changes will be in a separate PR once this API change is approved. Risk Level: Low Testing: CI, added an integration test for implementation of this API locally Signed-off-by: Tianyu Xia <tyxia@google.com> Mirrored from https://github.com/envoyproxy/envoy @ ef70185f3ac241d09eabfe15c65b0d631134f74fpull/624/head
parent
996cb7a8b7
commit
77872e2bb4
1 changed files with 24 additions and 2 deletions
Loading…
Reference in new issue