api: remove v2 dependencies from v3 API protos. (#18817)

This should reduce the binary size, which is particularly important for Envoy Mobile. Looking at a
local opt build with debug symbols, I'm seeing a drop from ~400MB to ~380MB, so maybe 5% saving. @Reflejo indicates that optimized Envoy Mobile without symbols is observing ~20% improvement.

Related to #10943

Risk level: Low
Testing: bazel query deps to confirm no more v2 API deps.

Signed-off-by: Harvey Tuch <htuch@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 53fca618e47702f6c8dbc323db9bd39d15725457
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent 10fe9225e4
commit 8c3a23b44a
  1. 15
      BUILD
  2. 1
      envoy/admin/v3/BUILD
  3. 1
      envoy/config/accesslog/v3/BUILD
  4. 1
      envoy/config/bootstrap/v3/BUILD
  5. 2
      envoy/config/cluster/v3/BUILD
  6. 1
      envoy/config/core/v3/BUILD
  7. 2
      envoy/config/endpoint/v3/BUILD
  8. 3
      envoy/config/listener/v3/BUILD
  9. 1
      envoy/config/metrics/v3/BUILD
  10. 1
      envoy/config/overload/v3/BUILD
  11. 2
      envoy/config/route/v3/BUILD
  12. 1
      envoy/config/tap/v3/BUILD
  13. 2
      envoy/config/trace/v3/BUILD
  14. 1
      envoy/data/accesslog/v3/BUILD
  15. 1
      envoy/data/tap/v3/BUILD
  16. 1
      envoy/extensions/common/ratelimit/v3/BUILD
  17. 1
      envoy/extensions/filters/common/fault/v3/BUILD
  18. 1
      envoy/extensions/filters/network/http_connection_manager/v3/BUILD
  19. 1
      envoy/extensions/filters/network/redis_proxy/v3/BUILD
  20. 1
      envoy/extensions/filters/network/tcp_proxy/v3/BUILD
  21. 5
      envoy/extensions/filters/network/thrift_proxy/router/v3/BUILD
  22. 1
      envoy/extensions/filters/network/thrift_proxy/v3/BUILD
  23. 5
      envoy/extensions/health_checkers/redis/v3/BUILD
  24. 5
      envoy/extensions/resource_monitors/fixed_heap/v3/BUILD
  25. 5
      envoy/extensions/resource_monitors/injected_resource/v3/BUILD
  26. 5
      envoy/extensions/retry/host/omit_canary_hosts/v3/BUILD
  27. 5
      envoy/extensions/retry/host/previous_hosts/v3/BUILD
  28. 5
      envoy/extensions/transport_sockets/alts/v3/BUILD
  29. 1
      envoy/extensions/transport_sockets/tls/v3/BUILD
  30. 1
      envoy/service/accesslog/v3/BUILD
  31. 1
      envoy/service/auth/v3/BUILD
  32. 1
      envoy/service/cluster/v3/BUILD
  33. 2
      envoy/service/discovery/v3/BUILD
  34. 1
      envoy/service/endpoint/v3/BUILD
  35. 1
      envoy/service/health/v3/BUILD
  36. 1
      envoy/service/listener/v3/BUILD
  37. 1
      envoy/service/load_stats/v3/BUILD
  38. 1
      envoy/service/metrics/v3/BUILD
  39. 1
      envoy/service/ratelimit/v3/BUILD
  40. 1
      envoy/service/route/v3/BUILD
  41. 1
      envoy/service/runtime/v3/BUILD
  42. 1
      envoy/service/secret/v3/BUILD
  43. 1
      envoy/service/status/v3/BUILD
  44. 1
      envoy/service/tap/v3/BUILD
  45. 1
      envoy/type/matcher/v3/BUILD
  46. 5
      envoy/type/metadata/v3/BUILD
  47. 1
      envoy/type/tracing/v3/BUILD
  48. 5
      envoy/type/v3/BUILD

15
BUILD

@ -18,17 +18,31 @@ proto_library(
"//envoy/api/v2/ratelimit:pkg",
"//envoy/api/v2/route:pkg",
"//envoy/config/bootstrap/v2:pkg",
"//envoy/config/cluster/dynamic_forward_proxy/v2alpha:pkg",
"//envoy/config/common/dynamic_forward_proxy/v2alpha:pkg",
"//envoy/config/common/tap/v2alpha:pkg",
"//envoy/config/filter/accesslog/v2:pkg",
"//envoy/config/filter/fault/v2:pkg",
"//envoy/config/filter/http/compressor/v2:pkg",
"//envoy/config/filter/http/dynamic_forward_proxy/v2alpha:pkg",
"//envoy/config/filter/http/gzip/v2:pkg",
"//envoy/config/filter/http/rate_limit/v2:pkg",
"//envoy/config/filter/http/rbac/v2:pkg",
"//envoy/config/filter/network/dubbo_proxy/v2alpha1:pkg",
"//envoy/config/filter/network/http_connection_manager/v2:pkg",
"//envoy/config/filter/network/rate_limit/v2:pkg",
"//envoy/config/filter/network/rbac/v2:pkg",
"//envoy/config/filter/network/redis_proxy/v2:pkg",
"//envoy/config/filter/network/tcp_proxy/v2:pkg",
"//envoy/config/filter/network/thrift_proxy/v2alpha1:pkg",
"//envoy/config/filter/thrift/rate_limit/v2alpha1:pkg",
"//envoy/config/filter/thrift/router/v2alpha1:pkg",
"//envoy/config/health_checker/redis/v2:pkg",
"//envoy/config/listener/v2:pkg",
"//envoy/config/metrics/v2:pkg",
"//envoy/config/overload/v2alpha:pkg",
"//envoy/config/ratelimit/v2:pkg",
"//envoy/config/rbac/v2:pkg",
"//envoy/config/resource_monitor/fixed_heap/v2alpha:pkg",
"//envoy/config/resource_monitor/injected_resource/v2alpha:pkg",
"//envoy/config/retry/omit_canary_hosts/v2:pkg",
@ -36,6 +50,7 @@ proto_library(
"//envoy/config/trace/v2:pkg",
"//envoy/config/trace/v2alpha:pkg",
"//envoy/config/transport_socket/alts/v2alpha:pkg",
"//envoy/config/transport_socket/tap/v2alpha:pkg",
"//envoy/data/accesslog/v2:pkg",
"//envoy/data/tap/v2alpha:pkg",
"//envoy/service/accesslog/v2:pkg",

@ -6,7 +6,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/admin/v2alpha:pkg",
"//envoy/config/bootstrap/v3:pkg",
"//envoy/config/cluster/v3:pkg",
"//envoy/config/core/v3:pkg",

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/config/filter/accesslog/v2:pkg",
"//envoy/config/route/v3:pkg",
"//envoy/type/matcher/v3:pkg",
"//envoy/type/v3:pkg",

@ -8,7 +8,6 @@ api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/config/accesslog/v3:pkg",
"//envoy/config/bootstrap/v2:pkg",
"//envoy/config/cluster/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/listener/v3:pkg",

@ -7,8 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2:pkg",
"//envoy/api/v2/cluster:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/endpoint/v3:pkg",
"//envoy/type/v3:pkg",

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2/core:pkg",
"//envoy/type/matcher/v3:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",

@ -6,8 +6,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/api/v2:pkg",
"//envoy/api/v2/endpoint:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",

@ -7,11 +7,8 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2:pkg",
"//envoy/api/v2/listener:pkg",
"//envoy/config/accesslog/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/listener/v2:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_udpa//xds/core/v3:pkg",

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/config/metrics/v2:pkg",
"//envoy/type/matcher/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -6,7 +6,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/overload/v2alpha:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -7,8 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2:pkg",
"//envoy/api/v2/route:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/type/matcher/v3:pkg",
"//envoy/type/metadata/v3:pkg",

@ -10,7 +10,6 @@ api_proto_package(
"//envoy/config/common/matcher/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/route/v3:pkg",
"//envoy/service/tap/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -8,8 +8,6 @@ api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/trace/v2:pkg",
"//envoy/config/trace/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@opencensus_proto//opencensus/proto/trace/v1:trace_config_proto",
],

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/data/accesslog/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/data/tap/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -6,7 +6,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/api/v2/ratelimit:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -6,7 +6,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/filter/fault/v2:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -8,7 +8,6 @@ api_proto_package(
deps = [
"//envoy/config/accesslog/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/filter/network/http_connection_manager/v2:pkg",
"//envoy/config/route/v3:pkg",
"//envoy/config/trace/v3:pkg",
"//envoy/type/http/v3:pkg",

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/config/filter/network/redis_proxy/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -8,7 +8,6 @@ api_proto_package(
deps = [
"//envoy/config/accesslog/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/filter/network/tcp_proxy/v2:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/filter/thrift/router/v2alpha1:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/config/filter/network/thrift_proxy/v2alpha1:pkg",
"//envoy/config/route/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/health_checker/redis/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/resource_monitor/fixed_heap/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/resource_monitor/injected_resource/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/retry/omit_canary_hosts/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/retry/previous_hosts/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/transport_socket/alts/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2/auth:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/type/matcher/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",

@ -9,7 +9,6 @@ api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/data/accesslog/v3:pkg",
"//envoy/service/accesslog/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -9,7 +9,6 @@ api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/service/auth/v2:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -8,7 +8,6 @@ api_proto_package(
has_services = True,
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2:pkg",
"//envoy/service/discovery/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -7,9 +7,7 @@ licenses(["notice"]) # Apache 2
api_proto_package(
has_services = True,
deps = [
"//envoy/api/v2:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/service/discovery/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -8,7 +8,6 @@ api_proto_package(
has_services = True,
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2:pkg",
"//envoy/service/discovery/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -11,7 +11,6 @@ api_proto_package(
"//envoy/config/cluster/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/endpoint/v3:pkg",
"//envoy/service/discovery/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -8,7 +8,6 @@ api_proto_package(
has_services = True,
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2:pkg",
"//envoy/service/discovery/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -9,7 +9,6 @@ api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/config/endpoint/v3:pkg",
"//envoy/service/load_stats/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -8,7 +8,6 @@ api_proto_package(
has_services = True,
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/service/metrics/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@prometheus_metrics_model//:client_model",
],

@ -9,7 +9,6 @@ api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/extensions/common/ratelimit/v3:pkg",
"//envoy/service/ratelimit/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -8,7 +8,6 @@ api_proto_package(
has_services = True,
deps = [
"//envoy/annotations:pkg",
"//envoy/api/v2:pkg",
"//envoy/service/discovery/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -8,7 +8,6 @@ api_proto_package(
has_services = True,
deps = [
"//envoy/annotations:pkg",
"//envoy/service/discovery/v2:pkg",
"//envoy/service/discovery/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -8,7 +8,6 @@ api_proto_package(
has_services = True,
deps = [
"//envoy/annotations:pkg",
"//envoy/service/discovery/v2:pkg",
"//envoy/service/discovery/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -10,7 +10,6 @@ api_proto_package(
"//envoy/admin/v3:pkg",
"//envoy/annotations:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/service/status/v2:pkg",
"//envoy/type/matcher/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -9,7 +9,6 @@ api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/data/tap/v3:pkg",
"//envoy/service/tap/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/annotations:pkg",
"//envoy/type/matcher:pkg",
"//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/type/metadata/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/type/metadata/v3:pkg",
"//envoy/type/tracing/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -5,8 +5,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/type:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

Loading…
Cancel
Save