Skip to content

Commit 4c489d9

Browse files
committed
cleanup
Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent e57159a commit 4c489d9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Future examples will be added in other languages once the support is available.
1515
This repository serves as a reference for developers who want to create their own dynamic modules for Envoy including
1616
how to setup the project, how to build it, and how to test it, etc.
1717

18-
## Dvelopment
18+
## Development
1919

2020
### Rust Dynamic Module
2121

@@ -45,7 +45,7 @@ The example Envoy configuration yaml is in `integration/envoy.yaml` which is als
4545
to run the integration tests. Assuming you built the Docker image with the tag `envoy-with-dynamic-modules:latest`, you can run Envoy with the following command:
4646

4747
```
48-
docker run -p 1062:1062 -v $(pwd):/examples -w /examples/integration envoy-with-dynamic-modules:latest --config-path ./envoy.yaml
48+
docker run --network host -v $(pwd):/examples -w /examples/integration envoy-with-dynamic-modules:latest --config-path ./envoy.yaml
4949
```
5050

5151
Then execute, for example, the following command to test the `echo` filter:
@@ -63,7 +63,7 @@ To update the Envoy version used in this repository, execute the following comma
6363

6464
```
6565
CURRENT_VERSION="$(cat ENVOY_VERSION)"
66-
NEW_VERSION=80c1ac2143a7a73932c9dff814d38fd6867fe691 # Whatever the head commit in envoyproxy/envoy repo.
66+
NEW_VERSION=80c1ac2143a7a73932c9dff814d38fd6867fe691 # Whatever the commit in envoyproxy/envoy repo.
6767
grep -rlF "${CURRENT_VERSION}" . | xargs sed -i "s/${CURRENT_VERSION}/${NEW_VERSION}/g"
6868
```
6969

integration/main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestIntegration(t *testing.T) {
2727
cmd := exec.Command(
2828
"docker",
2929
"run",
30-
"-p", "1062:1062",
30+
"--network", "host",
3131
"-v", cwd+":/integration",
3232
"-w", "/integration",
3333
envoyImage,
@@ -42,9 +42,9 @@ func TestIntegration(t *testing.T) {
4242
require.NoError(t, cmd.Process.Kill())
4343
})
4444

45-
// Let's wait at least 10 seconds for Envoy to start since it might take a while
45+
// Let's wait at least 5 seconds for Envoy to start since it might take a while
4646
// to pull the image.
47-
time.Sleep(10 * time.Second)
47+
time.Sleep(5 * time.Second)
4848

4949
t.Run("health checking", func(t *testing.T) {
5050
require.Eventually(t, func() bool {

rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn init() -> bool {
1717
/// This is the entrypoint every time a new HTTP filter is created via the DynamicModuleFilter config.
1818
///
1919
/// Each argument matches the corresponding argument in the Envoy config here:
20-
/// https://storage.googleapis.com/envoy-pr/be95c85/docs/api-v3/extensions/filters/http/dynamic_modules/v3/dynamic_modules.proto.html#envoy-v3-api-msg-extensions-filters-http-dynamic-modules-v3-dynamicmodulefilter
20+
/// https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/dynamic_modules/v3/dynamic_modules.proto#envoy-v3-api-msg-extensions-dynamic-modules-v3-dynamicmoduleconfig
2121
fn new_http_filter_config_fn<EC: EnvoyHttpFilterConfig, EHF: EnvoyHttpFilter>(
2222
_envoy_filter_config: &mut EC,
2323
filter_name: &str,

0 commit comments

Comments
 (0)