-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Logical dns: moving to an extension #23799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| load( | ||
| "//bazel:envoy_build_system.bzl", | ||
| "envoy_cc_library", | ||
| "envoy_extension_package", | ||
| ) | ||
|
|
||
| licenses(["notice"]) # Apache 2 | ||
|
|
||
| envoy_extension_package() | ||
|
|
||
| envoy_cc_library( | ||
| name = "logical_host_lib", | ||
| srcs = ["logical_host.cc"], | ||
| hdrs = ["logical_host.h"], | ||
| deps = [ | ||
| "//source/common/upstream:upstream_includes", | ||
| "@envoy_api//envoy/config/core/v3:pkg_cc_proto", | ||
| "@envoy_api//envoy/config/endpoint/v3:pkg_cc_proto", | ||
| ], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| load( | ||
| "//bazel:envoy_build_system.bzl", | ||
| "envoy_cc_extension", | ||
| "envoy_extension_package", | ||
| ) | ||
|
|
||
| licenses(["notice"]) # Apache 2 | ||
|
|
||
| envoy_extension_package() | ||
|
|
||
| envoy_cc_extension( | ||
| name = "logical_dns_cluster_lib", | ||
| srcs = ["logical_dns_cluster.cc"], | ||
| hdrs = ["logical_dns_cluster.h"], | ||
| # prevously considered core code. | ||
| visibility = ["//visibility:public"], | ||
| deps = [ | ||
| "//envoy/upstream:cluster_factory_interface", | ||
| "//source/common/common:dns_utils_lib", | ||
| "//source/common/common:empty_string", | ||
| "//source/common/config:utility_lib", | ||
| "//source/common/network:address_lib", | ||
| "//source/common/network:utility_lib", | ||
| "//source/common/protobuf", | ||
| "//source/common/protobuf:utility_lib", | ||
| "//source/common/upstream:cluster_factory_lib", | ||
| "//source/common/upstream:upstream_includes", | ||
| "//source/extensions/clusters/common:logical_host_lib", | ||
| "@envoy_api//envoy/config/cluster/v3:pkg_cc_proto", | ||
| "@envoy_api//envoy/config/core/v3:pkg_cc_proto", | ||
| "@envoy_api//envoy/config/endpoint/v3:pkg_cc_proto", | ||
| ], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| load( | ||
| "//bazel:envoy_build_system.bzl", | ||
| "envoy_cc_test", | ||
| "envoy_package", | ||
| ) | ||
|
|
||
| licenses(["notice"]) # Apache 2 | ||
|
|
||
| envoy_package() | ||
|
|
||
| envoy_cc_test( | ||
| name = "logical_dns_cluster_test", | ||
| srcs = ["logical_dns_cluster_test.cc"], | ||
| deps = [ | ||
| "//source/common/event:dispatcher_lib", | ||
| "//source/common/network:utility_lib", | ||
| "//source/common/upstream:upstream_lib", | ||
| "//source/extensions/clusters/logical_dns:logical_dns_cluster_lib", | ||
| "//source/extensions/transport_sockets/raw_buffer:config", | ||
| "//source/server:transport_socket_config_lib", | ||
| "//test/common/upstream:utility_lib", | ||
| "//test/mocks:common_lib", | ||
| "//test/mocks/local_info:local_info_mocks", | ||
| "//test/mocks/network:network_mocks", | ||
| "//test/mocks/protobuf:protobuf_mocks", | ||
| "//test/mocks/runtime:runtime_mocks", | ||
| "//test/mocks/server:admin_mocks", | ||
| "//test/mocks/server:instance_mocks", | ||
| "//test/mocks/ssl:ssl_mocks", | ||
| "//test/mocks/thread_local:thread_local_mocks", | ||
| "//test/mocks/upstream:cluster_manager_mocks", | ||
| "//test/test_common:utility_lib", | ||
| "@envoy_api//envoy/config/cluster/v3:pkg_cc_proto", | ||
| "@envoy_api//envoy/config/core/v3:pkg_cc_proto", | ||
| ], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -589,6 +589,7 @@ envoy_cc_test_library( | |
| ":http_protocol_integration_lib", | ||
| ":socket_interface_swap_lib", | ||
| "//source/common/http:header_map_lib", | ||
| "//source/extensions/clusters/logical_dns:logical_dns_cluster_lib", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar question to the |
||
| "//source/extensions/filters/http/buffer:config", | ||
| "//test/common/http/http2:http2_frame", | ||
| "//test/integration/filters:add_invalid_data_filter_lib", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I wonder if this target can be built w/o reliance on source/extensions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, there's already a number of registered extensions such as source/extensions/transport_sockets/raw_buffer/config.h that envoy won't build without
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that said this is why we have the visibility rules and an extra presubmit around extensions not generally being visible to core tests. so it's a pretty well cross-checked system :-)