api: add NonForwardingAction route action type (#16144)

Signed-off-by: Mark D. Roth <roth@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ f51e927bb8f28dba6b631bebbd2656a1642734df
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent 22e311cc1f
commit 5ea9e40596
  1. 16
      envoy/config/route/v3/route_components.proto
  2. 18
      envoy/config/route/v4alpha/route_components.proto

@ -202,7 +202,7 @@ message FilterAction {
//
// Envoy supports routing on HTTP method via :ref:`header matching
// <envoy_api_msg_config.route.v3.HeaderMatcher>`.
// [#next-free-field: 18]
// [#next-free-field: 19]
message Route {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.route.Route";
@ -229,11 +229,17 @@ message Route {
DirectResponseAction direct_response = 7;
// [#not-implemented-hide:]
// If true, a filter will define the action (e.g., it could dynamically generate the
// RouteAction).
// A filter-defined action (e.g., it could dynamically generate the RouteAction).
// [#comment: TODO(samflattery): Remove cleanup in route_fuzz_test.cc when
// implemented]
FilterAction filter_action = 17;
// [#not-implemented-hide:]
// An action used when the route will generate a response directly,
// without forwarding to an upstream host. This will be used in non-proxy
// xDS clients like the gRPC server. It could also be used in the future
// in Envoy for a filter that directly generates responses for requests.
NonForwardingAction non_forwarding_action = 18;
}
// The Metadata field can be used to provide additional information
@ -1469,6 +1475,10 @@ message DirectResponseAction {
core.v3.DataSource body = 2;
}
// [#not-implemented-hide:]
message NonForwardingAction {
}
message Decorator {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.route.Decorator";

@ -200,7 +200,7 @@ message FilterAction {
//
// Envoy supports routing on HTTP method via :ref:`header matching
// <envoy_api_msg_config.route.v4alpha.HeaderMatcher>`.
// [#next-free-field: 18]
// [#next-free-field: 19]
message Route {
option (udpa.annotations.versioning).previous_message_type = "envoy.config.route.v3.Route";
@ -227,11 +227,17 @@ message Route {
DirectResponseAction direct_response = 7;
// [#not-implemented-hide:]
// If true, a filter will define the action (e.g., it could dynamically generate the
// RouteAction).
// A filter-defined action (e.g., it could dynamically generate the RouteAction).
// [#comment: TODO(samflattery): Remove cleanup in route_fuzz_test.cc when
// implemented]
FilterAction filter_action = 17;
// [#not-implemented-hide:]
// An action used when the route will generate a response directly,
// without forwarding to an upstream host. This will be used in non-proxy
// xDS clients like the gRPC server. It could also be used in the future
// in Envoy for a filter that directly generates responses for requests.
NonForwardingAction non_forwarding_action = 18;
}
// The Metadata field can be used to provide additional information
@ -1411,6 +1417,12 @@ message DirectResponseAction {
core.v4alpha.DataSource body = 2;
}
// [#not-implemented-hide:]
message NonForwardingAction {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.route.v3.NonForwardingAction";
}
message Decorator {
option (udpa.annotations.versioning).previous_message_type = "envoy.config.route.v3.Decorator";

Loading…
Cancel
Save