Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster_header not set for RequestMirrorPolicy #289

Open
mirwide opened this issue Jun 6, 2023 · 0 comments
Open

cluster_header not set for RequestMirrorPolicy #289

mirwide opened this issue Jun 6, 2023 · 0 comments

Comments

@mirwide
Copy link

mirwide commented Jun 6, 2023

RouteConfiguration always return empty cluster_header fields. Code for reproduce:

RouteConfiguration.newBuilder()
            .setName("local_route")
            .addVirtualHosts(
                VirtualHost.newBuilder()
                    .addRequestMirrorPolicies(RequestMirrorPolicy.newBuilder().setClusterHeader("cluster-shadow")))
            .build();

cluster_header exist in snapshot
image
but not return in RouteConfiguration

grpcurl -plaintext -d '
{
   "version_info":"1",
   "type_url":"type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
   "resource_names":[                   
   "local_route"
   ],
   "node":{
      "cluster":"cluster1",
      "id":"id1"
   }
}' localhost:8888 envoy.service.discovery.v3.AggregatedDiscoveryService/StreamAggregatedResources | jq .resources[0].virtualHosts[0].requestMirrorPolicies
[
  {}
]
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

No branches or pull requests

1 participant