File tree Expand file tree Collapse file tree 9 files changed +26
-10
lines changed
Expand file tree Collapse file tree 9 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
4747
4848bazel_dep (name = "bazel_skylib" , version = "1.7.1" )
4949bazel_dep (name = "googleapis" , repo_name = "com_google_googleapis" , version = "0.0.0-20240326-1c8d509c5" )
50+ # CEL Spec may be removed when cncf/xds MODULE is no longer using protobuf 27.x
51+ bazel_dep (name = "cel-spec" , repo_name = "dev_cel" , version = "0.15.0" )
5052bazel_dep (name = "grpc" , repo_name = "com_github_grpc_grpc" , version = "1.56.3.bcr.1" )
5153bazel_dep (name = "grpc-proto" , repo_name = "io_grpc_grpc_proto" , version = "0.0.0-20240627-ec30f58" )
5254bazel_dep (name = "protobuf" , repo_name = "com_google_protobuf" , version = "23.1" )
Original file line number Diff line number Diff line change @@ -87,13 +87,22 @@ IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS = {
8787
8888def grpc_java_repositories (bzlmod = False ):
8989 """Imports dependencies for grpc-java."""
90+ if not bzlmod and not native .existing_rule ("dev_cel" ):
91+ http_archive (
92+ name = "dev_cel" ,
93+ strip_prefix = "cel-spec-0.15.0" ,
94+ sha256 = "3ee09eb69dbe77722e9dee23dc48dc2cd9f765869fcf5ffb1226587c81791a0b" ,
95+ urls = [
96+ "https://github.com/google/cel-spec/archive/refs/tags/v0.15.0.tar.gz" ,
97+ ],
98+ )
9099 if not native .existing_rule ("com_github_cncf_xds" ):
91100 http_archive (
92101 name = "com_github_cncf_xds" ,
93- strip_prefix = "xds-e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7 " ,
94- sha256 = "0d33b83f8c6368954e72e7785539f0d272a8aba2f6e2e336ed15fd1514bc9899 " ,
102+ strip_prefix = "xds-024c85f92f20cab567a83acc50934c7f9711d124 " ,
103+ sha256 = "5f403aa681711500ca8e62387be3e37d971977db6e88616fc21862a406430649 " ,
95104 urls = [
96- "https://github.com/cncf/xds/archive/e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7 .tar.gz" ,
105+ "https://github.com/cncf/xds/archive/024c85f92f20cab567a83acc50934c7f9711d124 .tar.gz" ,
97106 ],
98107 )
99108 if not bzlmod and not native .existing_rule ("com_github_grpc_grpc" ):
Original file line number Diff line number Diff line change 1717
1818set -e
1919# import VERSION from one of the google internal CLs
20- VERSION=e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7
20+ VERSION=024c85f92f20cab567a83acc50934c7f9711d124
2121DOWNLOAD_URL=" https://github.com/cncf/xds/archive/${VERSION} .tar.gz"
2222DOWNLOAD_BASE_DIR=" xds-${VERSION} "
2323SOURCE_PROTO_BASE_DIR=" ${DOWNLOAD_BASE_DIR} "
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package udpa.annotations;
88
99import "google/protobuf/descriptor.proto" ;
1010
11- option go_package = "github.com/cncf/xds/go/annotations" ;
11+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
1212
1313// Magic number in this file derived from top 28bit of SHA256 digest of
1414// "udpa.annotation.migrate".
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import "udpa/annotations/status.proto";
1010
1111import "google/protobuf/descriptor.proto" ;
1212
13- option go_package = "github.com/cncf/xds/go/annotations" ;
13+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
1414
1515// All annotations in this file are experimental and subject to change. Their
1616// only consumer today is the Envoy APIs and SecuritAnnotationValidator protoc
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package udpa.annotations;
88
99import "google/protobuf/descriptor.proto" ;
1010
11- option go_package = "github.com/cncf/xds/go/annotations" ;
11+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
1212
1313extend google.protobuf.FieldOptions {
1414 // Magic number is the 28 most significant bits in the sha256sum of "udpa.annotations.sensitive".
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package udpa.annotations;
88
99import "google/protobuf/descriptor.proto" ;
1010
11- option go_package = "github.com/cncf/xds/go/annotations" ;
11+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
1212
1313// Magic number in this file derived from top 28bit of SHA256 digest of
1414// "udpa.annotation.status".
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package udpa.annotations;
88
99import "google/protobuf/descriptor.proto" ;
1010
11- option go_package = "github.com/cncf/xds/go/annotations" ;
11+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
1212
1313extend google.protobuf.MessageOptions {
1414 // Magic number derived from 0x78 ('x') 0x44 ('D') 0x53 ('S')
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ syntax = "proto3";
22
33package xds.type.matcher.v3 ;
44
5+ import "xds/core/v3/extension.proto" ;
56import "xds/type/matcher/v3/regex.proto" ;
67
78import "validate/validate.proto" ;
@@ -14,7 +15,7 @@ option go_package = "github.com/cncf/xds/go/xds/type/matcher/v3";
1415// [#protodoc-title: String matcher]
1516
1617// Specifies the way to match a string.
17- // [#next-free-field: 8 ]
18+ // [#next-free-field: 9 ]
1819message StringMatcher {
1920 oneof match_pattern {
2021 option (validate.required ) = true ;
@@ -52,6 +53,10 @@ message StringMatcher {
5253 //
5354 // * *abc* matches the value *xyz.abc.def*
5455 string contains = 7 [(validate.rules ).string = {min_len : 1 }];
56+
57+ // Use an extension as the matcher type.
58+ // [#extension-category: envoy.string_matcher]
59+ xds.core.v3.TypedExtensionConfig custom = 8 ;
5560 }
5661
5762 // If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no
You can’t perform that action at this time.
0 commit comments