Skip to content

Commit 19c1288

Browse files
Chenrujie-85c00887447c00887447
authored
Upgrade to istio 1.21 (#129)
Signed-off-by: c00887447 <[email protected]> Co-authored-by: c00887447 <[email protected]> Co-authored-by: c00887447 <[email protected]>
1 parent 75098f8 commit 19c1288

File tree

36 files changed

+390
-420
lines changed

36 files changed

+390
-420
lines changed

BUILD

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,12 @@ envoy_cc_binary(
1515
"//src/application_protocols/brpc:config",
1616
"//src/application_protocols/trpc:config",
1717
"@io_istio_proxy//extensions/access_log_policy:access_log_policy_lib",
18-
"@io_istio_proxy//extensions/metadata_exchange:metadata_exchange_lib",
1918
"@io_istio_proxy//extensions/stackdriver:stackdriver_plugin",
2019
"@io_istio_proxy//source/extensions/common/workload_discovery:api_lib", # Experimental: WIP
2120
"@io_istio_proxy//source/extensions/filters/http/alpn:config_lib",
22-
"@io_istio_proxy//source/extensions/filters/http/authn:filter_lib",
23-
"@io_istio_proxy//source/extensions/filters/http/connect_authority", # Experimental: ambient
24-
"@io_istio_proxy//source/extensions/filters/http/connect_baggage", # Experimental: ambient
2521
"@io_istio_proxy//source/extensions/filters/http/istio_stats",
26-
"@io_istio_proxy//source/extensions/filters/listener/set_internal_dst_address:filter_lib", # Experimental: ambient
27-
"@io_istio_proxy//source/extensions/filters/network/forward_downstream_sni:config_lib",
28-
"@io_istio_proxy//source/extensions/filters/network/istio_authn:config_lib",
22+
"@io_istio_proxy//source/extensions/filters/http/peer_metadata:filter_lib",
2923
"@io_istio_proxy//source/extensions/filters/network/metadata_exchange:config_lib",
30-
"@io_istio_proxy//source/extensions/filters/network/sni_verifier:config_lib",
31-
"@io_istio_proxy//source/extensions/filters/network/tcp_cluster_rewrite:config_lib",
3224
"@envoy//source/exe:envoy_main_entry_lib",
3325
],
34-
)
26+
)

WORKSPACE

Lines changed: 8 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,18 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2121

2222
http_archive(
2323
name = "io_istio_proxy",
24-
strip_prefix = "proxy-1.18.1",
25-
sha256 = "ce682bf4bad606bfe5188e85d585a2ba12fec177254381e08da6cb27e8c872a1",
26-
url = "https://github.com/istio/proxy/archive/refs/tags/1.18.1.tar.gz",
27-
)
28-
29-
load(
30-
"@io_istio_proxy//bazel:repositories.bzl",
31-
"docker_dependencies",
32-
"istioapi_dependencies",
33-
)
34-
35-
istioapi_dependencies()
36-
37-
bind(
38-
name = "boringssl_crypto",
39-
actual = "//external:ssl",
24+
strip_prefix = "proxy-1.21.0",
25+
sha256 = "007aa638869bad4e9b4a98c56518d033f59a67774e098307dffaf562832d3fa6",
26+
url = "https://github.com/istio/proxy/archive/refs/tags/1.21.0.tar.gz",
4027
)
4128

4229
# 1. Determine SHA256 `wget https://github.com/envoyproxy/envoy/archive/$COMMIT.tar.gz && sha256sum $COMMIT.tar.gz`
4330
# 2. Update .bazelversion, envoy.bazelrc and .bazelrc if needed.
4431
#
45-
# Commit date: 2023-07-13
46-
ENVOY_SHA = "5b97cffea6bf0588dc7f6efe43a9822cd376cbea"
32+
# Commit date: 2024-08-22
33+
ENVOY_SHA = "2bb4cf1997597a981bc2bf3e500a9ae35787911e"
4734

48-
ENVOY_SHA256 = "53a5c10fd00f6b2023c8341555d794dcd563bb1aa43944a551dc90af3c2e51d8"
35+
ENVOY_SHA256 = "0b2dc5ae343dd70f13730c16f9025ce4787f4ec60a8a4a1a5bdbab7f378506fc"
4936

5037
ENVOY_ORG = "envoyproxy"
5138

@@ -84,7 +71,7 @@ envoy_dependencies()
8471

8572
load("@envoy//bazel:repositories_extra.bzl", "envoy_dependencies_extra")
8673

87-
envoy_dependencies_extra()
74+
envoy_dependencies_extra(ignore_root_user_error = True)
8875

8976
load("@envoy//bazel:python_dependencies.bzl", "envoy_python_dependencies")
9077

@@ -106,62 +93,4 @@ go_repository(
10693
sum = "h1:po9/4sTYwOU9QPo1XTU8+YLNBPyXgS4nSdIjxNBXtxg=",
10794
version = "v0.1.12",
10895
build_external = "external",
109-
)
110-
111-
# Bazel @rules_pkg
112-
113-
http_archive(
114-
name = "rules_pkg",
115-
sha256 = "aeca78988341a2ee1ba097641056d168320ecc51372ef7ff8e64b139516a4937",
116-
urls = [
117-
"https://github.com/bazelbuild/rules_pkg/releases/download/0.2.6-1/rules_pkg-0.2.6.tar.gz",
118-
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.6/rules_pkg-0.2.6.tar.gz",
119-
],
120-
)
121-
122-
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
123-
124-
rules_pkg_dependencies()
125-
126-
# Docker dependencies
127-
128-
docker_dependencies()
129-
130-
load(
131-
"@io_bazel_rules_docker//repositories:repositories.bzl",
132-
container_repositories = "repositories",
133-
)
134-
135-
container_repositories()
136-
137-
load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")
138-
139-
container_deps()
140-
141-
load(
142-
"@io_bazel_rules_docker//container:container.bzl",
143-
"container_pull",
144-
)
145-
146-
container_pull(
147-
name = "distroless_cc",
148-
# Latest as of 10/21/2019. To update, remove this line, re-build, and copy the suggested digest.
149-
digest = "sha256:86f16733f25964c40dcd34edf14339ddbb2287af2f7c9dfad88f0366723c00d7",
150-
registry = "gcr.io",
151-
repository = "distroless/cc",
152-
)
153-
154-
container_pull(
155-
name = "bionic",
156-
# Latest as of 10/21/2019. To update, remove this line, re-build, and copy the suggested digest.
157-
digest = "sha256:3e83eca7870ee14a03b8026660e71ba761e6919b6982fb920d10254688a363d4",
158-
registry = "index.docker.io",
159-
repository = "library/ubuntu",
160-
tag = "bionic",
161-
)
162-
163-
# End of docker dependencies
164-
165-
load("//bazel:wasm.bzl", "wasm_dependencies")
166-
167-
wasm_dependencies()
96+
)

api/meta_protocol_proxy/admin/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ api_proto_package(
88
"@envoy_api//envoy/config/core/v3:pkg",
99
"@envoy_api//envoy/type/v3:pkg",
1010
"@envoy_api//envoy/admin/v3:pkg",
11-
"@com_github_cncf_udpa//udpa/annotations:pkg",
11+
"@com_github_cncf_xds//udpa/annotations:pkg",
1212
],
1313
)
1414

api/meta_protocol_proxy/config/route/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ api_proto_package(
88
"@envoy_api//envoy/config/route/v3:pkg",
99
"@envoy_api//envoy/type/matcher/v3:pkg",
1010
"@envoy_api//envoy/type/v3:pkg",
11-
"@com_github_cncf_udpa//udpa/annotations:pkg",
11+
"@com_github_cncf_xds//udpa/annotations:pkg",
1212
],
1313
)
1414

api/meta_protocol_proxy/filters/global_ratelimit/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ licenses(["notice"]) # Apache 2
66
api_proto_package(
77
deps = [
88
"//api/meta_protocol_proxy/config/route/v1alpha:pkg",
9-
"@com_github_cncf_udpa//udpa/annotations:pkg",
9+
"@com_github_cncf_xds//udpa/annotations:pkg",
1010
"@envoy_api//envoy/config/core/v3:pkg",
1111
"@envoy_api//envoy/config/route/v3:pkg",
1212
"@envoy_api//envoy/config/ratelimit/v3:pkg"

api/meta_protocol_proxy/filters/istio_stats/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ licenses(["notice"]) # Apache 2
55

66
api_proto_package(
77
deps = [
8-
"@com_github_cncf_udpa//udpa/annotations:pkg",
8+
"@com_github_cncf_xds//udpa/annotations:pkg",
99
],
1010
)

api/meta_protocol_proxy/filters/local_ratelimit/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ licenses(["notice"]) # Apache 2
66
api_proto_package(
77
deps = [
88
"//api/meta_protocol_proxy/config/route/v1alpha:pkg",
9-
"@com_github_cncf_udpa//udpa/annotations:pkg",
9+
"@com_github_cncf_xds//udpa/annotations:pkg",
1010
"@envoy_api//envoy/type/v3:pkg",
1111
"@envoy_api//envoy/config/core/v3:pkg",
1212
"@envoy_api//envoy/config/route/v3:pkg",

api/meta_protocol_proxy/filters/metadata_exchange/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ licenses(["notice"]) # Apache 2
55

66
api_proto_package(
77
deps = [
8-
"@com_github_cncf_udpa//udpa/annotations:pkg",
8+
"@com_github_cncf_xds//udpa/annotations:pkg",
99
],
1010
)

api/meta_protocol_proxy/filters/router/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
44
licenses(["notice"]) # Apache 2
55

66
api_proto_package(
7-
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
7+
deps = ["@com_github_cncf_xds//udpa/annotations:pkg"],
88
)

api/meta_protocol_proxy/v1alpha/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ api_proto_package(
2121
"@envoy_api//envoy/config/route/v3:pkg",
2222
"@envoy_api//envoy/type/matcher/v3:pkg",
2323
"@envoy_api//envoy/type/v3:pkg",
24-
"@com_github_cncf_udpa//udpa/annotations:pkg",
24+
"@com_github_cncf_xds//udpa/annotations:pkg",
2525
],
2626
)
2727

0 commit comments

Comments
 (0)