Fix invalid config example#18093
Fix invalid config example#18093exoego wants to merge 2 commits intoenvoyproxy:mainfrom exoego:patch-1
Conversation
|
Hi @exoego, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
|
hi @exoego thanks for this we have a system to check standalone yaml files which should catch this (there is also one for snippets in docs but not sure why but it doesnt always catch issues) would you be willing to move this snippet to a full config and replace the code-block with a if not i can land this and follow up myself, but as it stands i have no immediate way of testing the change |
|
@phlax I will try that! |
|
this is failing the example configs test here https://dev.azure.com/cncf/envoy/_build/results?buildId=88372&view=logs&j=8c169225-0ae8-53bd-947f-07cb81846cb5&t=6b0ace90-28b2-51d9-2951-b1fd35e67dec&l=22272 its kinda why i wanted to move it to this validation, as it picks up more issues in this case tho, im not sure if its the tests or the config that is at issue - checking the fail log in test artefacts it says ill investigate a bit further, but it would also be helpful if one of us could try starting envoy with the config in this PR to see if it works outside tests |
There was a problem hiding this comment.
im thinking this might be the issue - iirc we have a wasm bin in the examples on a different path, checking...
There was a problem hiding this comment.
yep, checking the other example wasm yaml files i think lib/envoy_filter_http_wasm_example.wasm should work
There was a problem hiding this comment.
Hmm, I tried filename: "lib/envoy_filter_http_wasm_example.wasm" and filename: "../../../../../../../examples/wasm-cc/lib" but both does not work...
There was a problem hiding this comment.
it needs to be just lib/envoy_filter_http_wasm_example.wasm
There was a problem hiding this comment.
also you will need a complete configuration - ie including a cluster
checking for existing docs that use a wasm example, there is one here docs/root/configuration/http/http_filters/wasm_filter.rst
if it has the required code, you could use the same example yaml file that this uses (in that case you do need to figure out the ../../)
There was a problem hiding this comment.
im wondering if this is related #18127 given the error message relates to customStatNamespaces
Signed-off-by: TATSUNO Yasuhiro <ytatsuno.jp@gmail.com>
| runtime: "envoy.wasm.runtime.v8" | ||
| code: | ||
| local: | ||
| filename: "../../../../../../../examples/wasm-cc/lib/envoy_filter_http_wasm_example.wasm" |
There was a problem hiding this comment.
by my calculation the relative path here is "../../../../examples/...
but im not sure if that is the error in ci
ill try testing this config when i get a chance
also im wondering whether it would be easier (and possible) to just link to the existing yaml file rather than linking to the wasm bin in a new one
There was a problem hiding this comment.
thinking on this further
this wont work
the path that needs to be correct is in the config_validation tests
that must be lib/x/y/z
therefore it would be a lot easier just pointing the literalinclude to the existing yaml example file (as done elsewhere i think for this reason)
There was a problem hiding this comment.
@phlax
Unfortunately, there is no example yaml containing envoy.filters.network.wasm.
It seems a lot work to create an example for envoy.filters.network.wasm.
Is it ok to simply rewrite wasm_filter.rst and not including?
|
@exoego see my last comment above the easiest way for this to work is have the if that example file does not cover what is required, then you can just use where it is tested in ci the path will always be |
|
@exoego it would be good to land this update/fix - let me know if there is anything i can do help with that |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Commit Message: docs: fix invalid config example
Additional Description:
Risk Level: Low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]