Skip to content
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

examples: Add dynamic configuration (filesystem) sandbox #13783

Merged

Conversation

phlax
Copy link
Member

@phlax phlax commented Oct 27, 2020

Signed-off-by: Ryan Northey ryan@synca.io

Commit Message: examples: Add dynamic configuration (filesystem) sandbox
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]

@phlax phlax marked this pull request as draft October 27, 2020 18:31
@mattklein123 mattklein123 self-assigned this Oct 27, 2020
@phlax phlax changed the title [WIP] examples: Add filesystem dynamic configuration sandbox example [WIP] examples: Add dynamic configuration (filesystem) sandbox Oct 28, 2020
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax force-pushed the examples-fs-dynamic-configuration branch from da85a34 to 447ba10 Compare October 28, 2020 13:49
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax force-pushed the examples-fs-dynamic-configuration branch from 447ba10 to d54bdc7 Compare October 28, 2020 15:06
@phlax
Copy link
Member Author

phlax commented Oct 28, 2020

Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>

.. note::

If you are running on a system with strict ``umask`` you will need to ``chmod`` the dynamic config
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not over-happy with this, but after thinking about it quite a bit, it seems like the least bad option to handle the umask issue

Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
$ curl -s http://localhost:10000
Request served by service1

HTTP/2.0 GET /
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im confused as to why this is getting HTTP/2.0 but the control plane sandbox, didnt

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm no clue.

Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@@ -18,6 +18,7 @@ filegroup(
],
exclude = [
"cache/responses.yaml",
"dynamic-config-fs/**/*",
Copy link
Member Author

@phlax phlax Oct 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isnt ideal, but theres not an obvious way to include the dynamic yaml without it being treated as a standalone envoy config

at least this config gets tested in the sandbox

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yeah. I think we could probably config check these separately somehow but not a huge deal for now.

@phlax phlax changed the title [WIP] examples: Add dynamic configuration (filesystem) sandbox examples: Add dynamic configuration (filesystem) sandbox Oct 29, 2020
@phlax phlax marked this pull request as ready for review October 29, 2020 12:44
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax
Copy link
Member Author

phlax commented Oct 29, 2020

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #13783 (comment) was created by @phlax.

see: more, trace.

.azure-pipelines/pipelines.yml Outdated Show resolved Hide resolved
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax
Copy link
Member Author

phlax commented Oct 29, 2020

this one should be ready for final review

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

$ curl -s http://localhost:10000
Request served by service1

HTTP/2.0 GET /
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm no clue.

@@ -18,6 +18,7 @@ filegroup(
],
exclude = [
"cache/responses.yaml",
"dynamic-config-fs/**/*",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yeah. I think we could probably config check these separately somehow but not a huge deal for now.

@mattklein123 mattklein123 merged commit 0bcd984 into envoyproxy:master Oct 29, 2020
mpuncel added a commit to mpuncel/envoy that referenced this pull request Oct 30, 2020
* master:
  dns: preserve custom resolver after channel destruction (envoyproxy#13820)
  docs: Further updates to quick-start (envoyproxy#13793)
  wasm: update V8 to v8.7.220.10. (envoyproxy#13568)
  test: adding a test for CONNECT to an IP address (envoyproxy#13818)
  [fuzz] Scaled Load balancer fuzz to 60k hosts (envoyproxy#13771)
  Removed Circle-CI reference. (envoyproxy#13824)
  wasm: strip only Custom Sections with precompiled Wasm modules. (envoyproxy#13775)
  examples: Add dynamic configuration (filesystem) sandbox (envoyproxy#13783)
  apple dns: resolve IP addresses without calling Apple APIs (envoyproxy#13698)

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants