route.proto: add is_optional field to ClusterSpecifierPlugin (#20301)

When deploying a new cluster specifier plugin, it is often necessary to add it to the configuration before all clients can be updated to support it, with routing rules configured to prevent clients without support from selecting any routes referencing the plugin.  This field will allow those clients to suppress the default behavior of NACKing any resource containing the unknown plugin.

Risk Level: None
Testing: None
Docs Changes: None
Release Notes: None
Platform Specific Features: None

Signed-off-by: Doug Fawley <dfawley@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 55539d34f6ad5771f17ba04a64e1c7d24aa3c055
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent 24454c243e
commit 38d9271bdd
  1. 7
      envoy/config/route/v3/route.proto

@ -133,6 +133,13 @@ message RouteConfiguration {
message ClusterSpecifierPlugin { message ClusterSpecifierPlugin {
// The name of the plugin and its opaque configuration. // The name of the plugin and its opaque configuration.
core.v3.TypedExtensionConfig extension = 1; core.v3.TypedExtensionConfig extension = 1;
// If is_optional is not set and the plugin defined by this message is not
// a supported type, the containing resource is NACKed. If is_optional is
// set, the resource would not be NACKed for this reason. In this case,
// routes referencing this plugin's name would not be treated as an illegal
// configuration, but would result in a failure if the route is selected.
bool is_optional = 2;
} }
message Vhds { message Vhds {

Loading…
Cancel
Save