-
Notifications
You must be signed in to change notification settings - Fork 5.3k
docs/ci: Update config validation #13387
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d0eeec2
cleanup: indentation in docs config yaml
phlax 8a5c39d
Add docs config snippets to config validation
phlax 96a8a20
find example config files dynamically
phlax 48b24d5
remove unnecessary verify_build_configs function
phlax 3457b52
cleanups
phlax b023640
add todo to fix failing configs
phlax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.