add cluster metadata to a route (#598)

Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
pull/600/merge
Yuval Kohavi 7 years ago committed by Matt Klein
parent 8e72d6cbec
commit 83a8d7cdb6
  1. 18
      envoy/api/v2/route/route.proto

@ -186,6 +186,17 @@ message WeightedCluster {
// Specifies a list of headers to be removed from responses when this cluster is selected
// through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string response_headers_to_remove = 6;
// [#not-implemented-hide:] The Metadata field can be used to provide additional information
// about the cluster chosen for routing. It can be used for configuration, stats, and logging.
// The metadata should go under the filter namespace that will need it.
// For instance, if the metadata is intended for the Router filter,
// the filter name should be specified as *envoy.router*.
//
// On runtime, this object will a merged with the
// :ref:`cluster_metadata <envoy_api_field_route.RouteAction.cluster_metadata>` from the
// enclosing :ref:`envoy_api_msg_route.RouteAction`.
core.Metadata cluster_metadata = 7;
}
// Specifies one or more upstream clusters associated with the route.
@ -532,6 +543,13 @@ message RouteAction {
// Indicates that the route has a CORS policy.
CorsPolicy cors = 17;
// [#not-implemented-hide:] The Metadata field can be used to provide additional information
// about the routed cluster. It can be used for configuration, stats, and logging.
// The metadata should go under the filter namespace that will need it.
// For instance, if the metadata is intended for the Router filter,
// the filter name should be specified as *envoy.router*.
core.Metadata cluster_metadata = 21;
}
message RedirectAction {

Loading…
Cancel
Save