From 996cb7a8b7fa7efc94d9ae717fa7b6ac611e882d Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Fri, 27 Aug 2021 02:59:51 +0000 Subject: [PATCH] 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 Mirrored from https://github.com/envoyproxy/envoy @ a3b2ba1f8c82f6aaa3c070f9a4ebf6d9e66d1075 --- envoy/config/route/v3/route_components.proto | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/envoy/config/route/v3/route_components.proto b/envoy/config/route/v3/route_components.proto index dfb8b8ed..daf1f8c2 100644 --- a/envoy/config/route/v3/route_components.proto +++ b/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]