examples: add an example of importing local lua code#7629
examples: add an example of importing local lua code#7629mattklein123 merged 8 commits intoenvoyproxy:masterfrom cetanu:patch-1
Conversation
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
|
Note this fails CI because |
|
I've looked through these and don't see any obvious way to get this file added... Any hints? |
|
I haven't tried this, but I think the following changes are sufficient:
The tarball created by configgen.sh (normally found in bazel-bin/configs/example_configs.tar; you can run Hopefully that all makes sense. The subdirectory in step 1 is necessary because the example config test will try to load every file in the root directory of the tarball as an envoy config (regardless of file extension). Having the subdirectory names in steps 1 & 3 match makes it so the config can be run directly from the examples directory or from the test without modification. |
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
|
Sorry about that, I wasn't entirely sure how lua handles imports to nested paths... looks like the last commit may be okay. I hope. |
|
/retest |
|
🤷♀️ nothing to rebuild. |
|
I think you’ll need to merge master or push an empty commit (`git commit --allow-empty’) to get the missing CI job to run again. |
Signed-off-by: Vasili Syrakis <vsyrakis@atlassian.com>
|
🎉 thanks for helping to get the tests passing, hope this is useful for folks out there |
This extends the existing example of using the Lua HTTP Filter in Envoy, so that there is a basic example of adding a lua file on the disk of the proxy, to be imported via a
requirestatement in the inline code.