Skip to content

Commit 0017c98

Browse files
authored
xds: cncf/xds proto sync to 2024-07-24 (#11417)
`cncf/xds`: Sync protos to the latest imported version cncf/xds@024c85f (commit 2024-07-23, cl/655545156). Should be a noop, just a routine xDS proto update to make upcoming RLQS-related imports simpler, see related #11401. Note that CEL is only added as a bazel dependency as now it's required to build cncf/xds. Actual third-party source import will be done in the follow up PR, where RLQS dependencies are added to the import scripts.
1 parent 448ec4f commit 0017c98

File tree

9 files changed

+26
-10
lines changed

9 files changed

+26
-10
lines changed

MODULE.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
4747

4848
bazel_dep(name = "bazel_skylib", version = "1.7.1")
4949
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")
5052
bazel_dep(name = "grpc", repo_name = "com_github_grpc_grpc", version = "1.56.3.bcr.1")
5153
bazel_dep(name = "grpc-proto", repo_name = "io_grpc_grpc_proto", version = "0.0.0-20240627-ec30f58")
5254
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "23.1")

repositories.bzl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,22 @@ IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS = {
8787

8888
def 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"):

xds/third_party/xds/import.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
set -e
1919
# import VERSION from one of the google internal CLs
20-
VERSION=e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7
20+
VERSION=024c85f92f20cab567a83acc50934c7f9711d124
2121
DOWNLOAD_URL="https://github.com/cncf/xds/archive/${VERSION}.tar.gz"
2222
DOWNLOAD_BASE_DIR="xds-${VERSION}"
2323
SOURCE_PROTO_BASE_DIR="${DOWNLOAD_BASE_DIR}"

xds/third_party/xds/src/main/proto/udpa/annotations/migrate.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package udpa.annotations;
88

99
import "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".

xds/third_party/xds/src/main/proto/udpa/annotations/security.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import "udpa/annotations/status.proto";
1010

1111
import "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

xds/third_party/xds/src/main/proto/udpa/annotations/sensitive.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package udpa.annotations;
88

99
import "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
extend google.protobuf.FieldOptions {
1414
// Magic number is the 28 most significant bits in the sha256sum of "udpa.annotations.sensitive".

xds/third_party/xds/src/main/proto/udpa/annotations/status.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package udpa.annotations;
88

99
import "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".

xds/third_party/xds/src/main/proto/udpa/annotations/versioning.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package udpa.annotations;
88

99
import "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
extend google.protobuf.MessageOptions {
1414
// Magic number derived from 0x78 ('x') 0x44 ('D') 0x53 ('S')

xds/third_party/xds/src/main/proto/xds/type/matcher/v3/string.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ syntax = "proto3";
22

33
package xds.type.matcher.v3;
44

5+
import "xds/core/v3/extension.proto";
56
import "xds/type/matcher/v3/regex.proto";
67

78
import "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]
1819
message 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

0 commit comments

Comments
 (0)