-
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.
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
- Loading branch information
Showing
68 changed files
with
1,334 additions
and
287 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
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
8 changes: 7 additions & 1 deletion
8
api/envoy/config/core/v4alpha/substitution_format_string.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
12 changes: 10 additions & 2 deletions
12
api/envoy/config/listener/v4alpha/listener_components.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -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"], | ||
) |
16 changes: 16 additions & 0 deletions
16
api/envoy/config/retry/omit_canary_hosts/v3/omit_canary_hosts.proto
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.config.retry.omit_canary_hosts.v3; | ||
|
||
import "udpa/annotations/status.proto"; | ||
|
||
option java_package = "io.envoyproxy.envoy.config.retry.omit_canary_hosts.v3"; | ||
option java_outer_classname = "OmitCanaryHostsProto"; | ||
option java_multiple_files = true; | ||
option (udpa.annotations.file_status).package_version_status = ACTIVE; | ||
|
||
// [#protodoc-title: Omit Canary Hosts Predicate] | ||
// [#extension: envoy.retry_host_predicates.omit_canary_hosts] | ||
|
||
message OmitCanaryHostsPredicate { | ||
} |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ Retry Predicates | |
|
||
*/empty/* | ||
*/v2/* | ||
*/v3/* | ||
../../extensions/retry/**/v3/* |
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,59 +1,2 @@ | ||
# Envoy WebAssembly Filter | ||
|
||
In this example, we show how a WebAssembly(WASM) filter can be used with the Envoy | ||
proxy. The Envoy proxy [configuration](./envoy.yaml) includes a Webassembly filter | ||
as documented [here](https://www.envoyproxy.io/docs/envoy/latest/). | ||
<!--TODO(bianpengyuan): change to the url of Wasm filter once the doc is ready.--> | ||
|
||
|
||
|
||
## Quick Start | ||
|
||
1. `docker-compose build` | ||
2. `docker-compose up` | ||
3. `curl -v localhost:18000` | ||
|
||
Curl output should include our headers: | ||
|
||
``` | ||
# <b> curl -v localhost:8000</b> | ||
* Rebuilt URL to: localhost:18000/ | ||
* Trying 127.0.0.1... | ||
* TCP_NODELAY set | ||
* Connected to localhost (127.0.0.1) port 18000 (#0) | ||
> GET / HTTP/1.1 | ||
> Host: localhost:18000 | ||
> User-Agent: curl/7.58.0 | ||
> Accept: */* | ||
> | ||
< HTTP/1.1 200 OK | ||
< content-length: 13 | ||
< content-type: text/plain | ||
< location: envoy-wasm | ||
< date: Tue, 09 Jul 2019 00:47:14 GMT | ||
< server: envoy | ||
< x-envoy-upstream-service-time: 0 | ||
< newheader: newheadervalue | ||
< | ||
example body | ||
* Connection #0 to host localhost left intact | ||
``` | ||
|
||
## Build WASM Module | ||
|
||
Now you want to make changes to the C++ filter ([envoy_filter_http_wasm_example.cc](envoy_filter_http_wasm_example.cc)) | ||
and build the WASM module ([envoy_filter_http_wasm_example.wasm](envoy_filter_http_wasm_example.wasm)). | ||
|
||
1. Build WASM module | ||
```shell | ||
bazel build //examples/wasm:envoy_filter_http_wasm_example.wasm | ||
``` | ||
|
||
## Build the Envoy WASM Image | ||
|
||
<!--TODO(incfly): remove this once we upstream WASM to envoyproxy main repo.--> | ||
|
||
For Envoy WASM runtime developers, if you want to make changes, please | ||
|
||
1. Follow [instructions](https://github.com/envoyproxy/envoy-wasm/blob/master/WASM.md). | ||
2. Modify `docker-compose.yaml` to mount your own Envoy. | ||
To learn about this sandbox and for instructions on how to run it please head over | ||
to the [envoy docs](https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/wasm-cc). |
8 changes: 7 additions & 1 deletion
8
generated_api_shadow/envoy/config/core/v3/substitution_format_string.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 7 additions & 1 deletion
8
generated_api_shadow/envoy/config/core/v4alpha/substitution_format_string.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.