File tree 9 files changed +26
-10
lines changed 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 = [
47
47
48
48
bazel_dep (name = "bazel_skylib" , version = "1.7.1" )
49
49
bazel_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" )
50
52
bazel_dep (name = "grpc" , repo_name = "com_github_grpc_grpc" , version = "1.56.3.bcr.1" )
51
53
bazel_dep (name = "grpc-proto" , repo_name = "io_grpc_grpc_proto" , version = "0.0.0-20240627-ec30f58" )
52
54
bazel_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 = {
87
87
88
88
def grpc_java_repositories (bzlmod = False ):
89
89
"""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
+ )
90
99
if not native .existing_rule ("com_github_cncf_xds" ):
91
100
http_archive (
92
101
name = "com_github_cncf_xds" ,
93
- strip_prefix = "xds-e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7 " ,
94
- sha256 = "0d33b83f8c6368954e72e7785539f0d272a8aba2f6e2e336ed15fd1514bc9899 " ,
102
+ strip_prefix = "xds-024c85f92f20cab567a83acc50934c7f9711d124 " ,
103
+ sha256 = "5f403aa681711500ca8e62387be3e37d971977db6e88616fc21862a406430649 " ,
95
104
urls = [
96
- "https://github.com/cncf/xds/archive/e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7 .tar.gz" ,
105
+ "https://github.com/cncf/xds/archive/024c85f92f20cab567a83acc50934c7f9711d124 .tar.gz" ,
97
106
],
98
107
)
99
108
if not bzlmod and not native .existing_rule ("com_github_grpc_grpc" ):
Original file line number Diff line number Diff line change 17
17
18
18
set -e
19
19
# import VERSION from one of the google internal CLs
20
- VERSION=e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7
20
+ VERSION=024c85f92f20cab567a83acc50934c7f9711d124
21
21
DOWNLOAD_URL=" https://github.com/cncf/xds/archive/${VERSION} .tar.gz"
22
22
DOWNLOAD_BASE_DIR=" xds-${VERSION} "
23
23
SOURCE_PROTO_BASE_DIR=" ${DOWNLOAD_BASE_DIR} "
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package udpa.annotations;
8
8
9
9
import "google/protobuf/descriptor.proto" ;
10
10
11
- option go_package = "github.com/cncf/xds/go/annotations" ;
11
+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
12
12
13
13
// Magic number in this file derived from top 28bit of SHA256 digest of
14
14
// "udpa.annotation.migrate".
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import "udpa/annotations/status.proto";
10
10
11
11
import "google/protobuf/descriptor.proto" ;
12
12
13
- option go_package = "github.com/cncf/xds/go/annotations" ;
13
+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
14
14
15
15
// All annotations in this file are experimental and subject to change. Their
16
16
// 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;
8
8
9
9
import "google/protobuf/descriptor.proto" ;
10
10
11
- option go_package = "github.com/cncf/xds/go/annotations" ;
11
+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
12
12
13
13
extend google.protobuf.FieldOptions {
14
14
// 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;
8
8
9
9
import "google/protobuf/descriptor.proto" ;
10
10
11
- option go_package = "github.com/cncf/xds/go/annotations" ;
11
+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
12
12
13
13
// Magic number in this file derived from top 28bit of SHA256 digest of
14
14
// "udpa.annotation.status".
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package udpa.annotations;
8
8
9
9
import "google/protobuf/descriptor.proto" ;
10
10
11
- option go_package = "github.com/cncf/xds/go/annotations" ;
11
+ option go_package = "github.com/cncf/xds/go/udpa/ annotations" ;
12
12
13
13
extend google.protobuf.MessageOptions {
14
14
// 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";
2
2
3
3
package xds.type.matcher.v3 ;
4
4
5
+ import "xds/core/v3/extension.proto" ;
5
6
import "xds/type/matcher/v3/regex.proto" ;
6
7
7
8
import "validate/validate.proto" ;
@@ -14,7 +15,7 @@ option go_package = "github.com/cncf/xds/go/xds/type/matcher/v3";
14
15
// [#protodoc-title: String matcher]
15
16
16
17
// Specifies the way to match a string.
17
- // [#next-free-field: 8 ]
18
+ // [#next-free-field: 9 ]
18
19
message StringMatcher {
19
20
oneof match_pattern {
20
21
option (validate.required ) = true ;
@@ -52,6 +53,10 @@ message StringMatcher {
52
53
//
53
54
// * *abc* matches the value *xyz.abc.def*
54
55
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 ;
55
60
}
56
61
57
62
// 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