Refactoring Envoy DNS resolution as extension (#17479)
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com> Mirrored from https://github.com/envoyproxy/envoy @ f4a88f969cfb58b36efcf649fc25e5c85e7e9f5cpull/626/head
parent
dbd252a1f3
commit
19acf566e8
11 changed files with 119 additions and 54 deletions
@ -0,0 +1,9 @@ |
|||||||
|
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||||
|
|
||||||
|
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||||
|
|
||||||
|
licenses(["notice"]) # Apache 2 |
||||||
|
|
||||||
|
api_proto_package( |
||||||
|
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"], |
||||||
|
) |
@ -0,0 +1,17 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.extensions.network.dns_resolver.apple.v3; |
||||||
|
|
||||||
|
import "udpa/annotations/status.proto"; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.extensions.network.dns_resolver.apple.v3"; |
||||||
|
option java_outer_classname = "AppleDnsResolverProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||||
|
|
||||||
|
// [#protodoc-title: apple DNS resolver] |
||||||
|
// [#extension: envoy.network.dns_resolver.apple] |
||||||
|
|
||||||
|
// Configuration for apple DNS resolver. |
||||||
|
message AppleDnsResolverConfig { |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||||
|
|
||||||
|
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||||
|
|
||||||
|
licenses(["notice"]) # Apache 2 |
||||||
|
|
||||||
|
api_proto_package( |
||||||
|
deps = [ |
||||||
|
"//envoy/config/core/v3:pkg", |
||||||
|
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||||
|
], |
||||||
|
) |
@ -0,0 +1,28 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.extensions.network.dns_resolver.cares.v3; |
||||||
|
|
||||||
|
import "envoy/config/core/v3/address.proto"; |
||||||
|
import "envoy/config/core/v3/resolver.proto"; |
||||||
|
|
||||||
|
import "udpa/annotations/status.proto"; |
||||||
|
import "validate/validate.proto"; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.extensions.network.dns_resolver.cares.v3"; |
||||||
|
option java_outer_classname = "CaresDnsResolverProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||||
|
|
||||||
|
// [#protodoc-title: c-ares DNS resolver] |
||||||
|
// [#extension: envoy.network.dns_resolver.cares] |
||||||
|
|
||||||
|
// Configuration for c-ares DNS resolver. |
||||||
|
message CaresDnsResolverConfig { |
||||||
|
// A list of dns resolver addresses. If specified, the DNS client library will perform resolution |
||||||
|
// via the underlying DNS resolvers. Otherwise, the default system resolvers |
||||||
|
// (e.g., /etc/resolv.conf) will be used. |
||||||
|
repeated config.core.v3.Address resolvers = 1 [(validate.rules).repeated = {min_items: 1}]; |
||||||
|
|
||||||
|
// Configuration of DNS resolver option flags which control the behavior of the DNS resolver. |
||||||
|
config.core.v3.DnsResolverOptions dns_resolver_options = 2; |
||||||
|
} |
Loading…
Reference in new issue