-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs/ci: Update config validation (#13387)
Signed-off-by: Ryan Northey <[email protected]>
- Loading branch information
Showing
7 changed files
with
137 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
load( | ||
"//bazel:envoy_build_system.bzl", | ||
"envoy_package", | ||
) | ||
|
||
licenses(["notice"]) # Apache 2 | ||
|
||
exports_files(["protodoc_manifest.yaml"]) | ||
|
||
envoy_package() | ||
|
||
# TODO(phlax): fix failing/excluded configs | ||
# the following config only fails on windows: | ||
# dns-cache-circuit-breaker: "Error: unable to read file: /etc/ssl/certs/ca-certificates.crt" | ||
|
||
filegroup( | ||
name = "configs", | ||
srcs = glob( | ||
["root/**/*.yaml"], | ||
exclude = [ | ||
"root/intro/_include/life-of-a-request.yaml", | ||
"root/intro/arch_overview/security/_include/ssl.yaml", | ||
"root/configuration/http/http_filters/_include/dns-cache-circuit-breaker.yaml", | ||
"root/configuration/http/http_filters/_include/grpc-reverse-bridge-filter.yaml", | ||
"root/configuration/http/http_filters/_include/grpc-transcoder-filter.yaml", | ||
], | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 57 additions & 57 deletions
114
docs/root/configuration/http/http_filters/_include/grpc-transcoder-filter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
admin: | ||
access_log_path: /tmp/admin_access.log | ||
address: | ||
socket_address: { address: 0.0.0.0, port_value: 9901 } | ||
admin: | ||
access_log_path: /tmp/admin_access.log | ||
address: | ||
socket_address: { address: 0.0.0.0, port_value: 9901 } | ||
|
||
static_resources: | ||
listeners: | ||
- name: listener1 | ||
address: | ||
socket_address: { address: 0.0.0.0, port_value: 51051 } | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
stat_prefix: grpc_json | ||
codec_type: AUTO | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: local_service | ||
domains: ["*"] | ||
routes: | ||
# NOTE: by default, matching happens based on the gRPC route, and not on the incoming request path. | ||
# Reference: https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/grpc_json_transcoder_filter#route-configs-for-transcoded-requests | ||
- match: { prefix: "/helloworld.Greeter" } | ||
route: { cluster: grpc, timeout: { seconds: 60 } } | ||
http_filters: | ||
- name: envoy.filters.http.grpc_json_transcoder | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder | ||
proto_descriptor: "/tmp/envoy/proto.pb" | ||
services: ["helloworld.Greeter"] | ||
print_options: | ||
add_whitespace: true | ||
always_print_primitive_fields: true | ||
always_print_enums_as_ints: false | ||
preserve_proto_field_names: false | ||
- name: envoy.filters.http.router | ||
static_resources: | ||
listeners: | ||
- name: listener1 | ||
address: | ||
socket_address: { address: 0.0.0.0, port_value: 51051 } | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
stat_prefix: grpc_json | ||
codec_type: AUTO | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: local_service | ||
domains: ["*"] | ||
routes: | ||
# NOTE: by default, matching happens based on the gRPC route, and not on the incoming request path. | ||
# Reference: https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/grpc_json_transcoder_filter#route-configs-for-transcoded-requests | ||
- match: { prefix: "/helloworld.Greeter" } | ||
route: { cluster: grpc, timeout: { seconds: 60 } } | ||
http_filters: | ||
- name: envoy.filters.http.grpc_json_transcoder | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder | ||
proto_descriptor: "/tmp/envoy/proto.pb" | ||
services: ["helloworld.Greeter"] | ||
print_options: | ||
add_whitespace: true | ||
always_print_primitive_fields: true | ||
always_print_enums_as_ints: false | ||
preserve_proto_field_names: false | ||
- name: envoy.filters.http.router | ||
|
||
clusters: | ||
- name: grpc | ||
connect_timeout: 1.25s | ||
type: logical_dns | ||
lb_policy: round_robin | ||
dns_lookup_family: V4_ONLY | ||
http2_protocol_options: {} | ||
load_assignment: | ||
cluster_name: grpc | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
# WARNING: "docker.for.mac.localhost" has been deprecated from Docker v18.03.0. | ||
# If you're running an older version of Docker, please use "docker.for.mac.localhost" instead. | ||
# Reference: https://docs.docker.com/docker-for-mac/release-notes/#docker-community-edition-18030-ce-mac59-2018-03-26 | ||
address: host.docker.internal | ||
port_value: 50051 | ||
clusters: | ||
- name: grpc | ||
connect_timeout: 1.25s | ||
type: logical_dns | ||
lb_policy: round_robin | ||
dns_lookup_family: V4_ONLY | ||
http2_protocol_options: {} | ||
load_assignment: | ||
cluster_name: grpc | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
# WARNING: "docker.for.mac.localhost" has been deprecated from Docker v18.03.0. | ||
# If you're running an older version of Docker, please use "docker.for.mac.localhost" instead. | ||
# Reference: https://docs.docker.com/docker-for-mac/release-notes/#docker-community-edition-18030-ce-mac59-2018-03-26 | ||
address: host.docker.internal | ||
port_value: 50051 |
64 changes: 32 additions & 32 deletions
64
docs/root/configuration/listeners/udp_filters/_include/udp-proxy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
admin: | ||
access_log_path: /tmp/admin_access.log | ||
admin: | ||
access_log_path: /tmp/admin_access.log | ||
address: | ||
socket_address: | ||
protocol: TCP | ||
address: 127.0.0.1 | ||
port_value: 9901 | ||
static_resources: | ||
listeners: | ||
- name: listener_0 | ||
address: | ||
socket_address: | ||
protocol: TCP | ||
protocol: UDP | ||
address: 127.0.0.1 | ||
port_value: 9901 | ||
static_resources: | ||
listeners: | ||
- name: listener_0 | ||
address: | ||
socket_address: | ||
protocol: UDP | ||
address: 127.0.0.1 | ||
port_value: 1234 | ||
listener_filters: | ||
name: envoy.filters.udp_listener.udp_proxy | ||
typed_config: | ||
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig | ||
stat_prefix: service | ||
cluster: service_udp | ||
clusters: | ||
- name: service_udp | ||
connect_timeout: 0.25s | ||
type: STATIC | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: service_udp | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 1235 | ||
port_value: 1234 | ||
listener_filters: | ||
name: envoy.filters.udp_listener.udp_proxy | ||
typed_config: | ||
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig | ||
stat_prefix: service | ||
cluster: service_udp | ||
clusters: | ||
- name: service_udp | ||
connect_timeout: 0.25s | ||
type: STATIC | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: service_udp | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 1235 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters