route config: add dynamic_metadata to route match (#17714)

Risk Level: Low
Testing: Unit Test
Docs Changes:
Release Notes: Updated
Platform Specific Features:
Fixes #17621

Signed-off-by: Yangmin Zhu <ymzhu@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ a3b2ba1f8c82f6aaa3c070f9a4ebf6d9e66d1075
pull/624/head
data-plane-api(Azure Pipelines) 3 years ago
parent 319f123db2
commit 996cb7a8b7
  1. 9
      envoy/config/route/v3/route_components.proto

@ -5,6 +5,7 @@ package envoy.config.route.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/proxy_protocol.proto";
import "envoy/type/matcher/v3/metadata.proto";
import "envoy/type/matcher/v3/regex.proto";
import "envoy/type/matcher/v3/string.proto";
import "envoy/type/metadata/v3/metadata.proto";
@ -405,7 +406,7 @@ message WeightedCluster {
string runtime_key_prefix = 2;
}
// [#next-free-field: 13]
// [#next-free-field: 14]
message RouteMatch {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.route.RouteMatch";
@ -518,6 +519,12 @@ message RouteMatch {
//
// [#next-major-version: unify with RBAC]
TlsContextMatchOptions tls_context = 11;
// Specifies a set of dynamic metadata matchers on which the route should match.
// The router will check the dynamic metadata against all the specified dynamic metadata matchers.
// If the number of specified dynamic metadata matchers is nonzero, they all must match the
// dynamic metadata for a match to occur.
repeated type.matcher.v3.MetadataMatcher dynamic_metadata = 13;
}
// [#next-free-field: 12]

Loading…
Cancel
Save