-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
datasource: add environment variable support #18498
Conversation
Signed-off-by: Anthony Rossi <[email protected]>
Signed-off-by: Anthony Rossi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, overall looks good, small question regarding the error handling
rendered docs are at https://storage.googleapis.com/envoy-pr/77eb7d6/docs/version_history/current.html and they look good. You can find them in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm api
This is the same validation logic as envoy.extensions.matching.common_inputs.environment_variable.v3
FWIW.
/assign-from @envoyproxy/first-pass-reviewers |
@envoyproxy/first-pass-reviewers assignee is @rojkov |
Signed-off-by: Anthony Rossi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Added a couple of comments.
/wait
Signed-off-by: Anthony Rossi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks good, needs fixing the format check.
To test it you can run ./tools/code_format/check_format.py fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, assuming the CI passes now and the remaining comments are addressed.
/wait |
Signed-off-by: Anthony Rossi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Signed-off-by: Anthony Rossi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see https://github.com/envoyproxy/envoy/blob/main/STYLE.md for formatting
edit: see also https://google.github.io/styleguide/cppguide.html
Signed-off-by: Anthony Rossi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo two final nits.
/wait
Signed-off-by: Anthony Rossi <[email protected]>
Signed-off-by: Anthony Rossi <[email protected]>
Sorry, you need to merge the main branch again to fix the coverage check. /wait |
It looks like there's some kind of outage preventing the CI from running on the merged changes. |
/retest |
Retrying Azure Pipelines: |
/retest |
Retrying Azure Pipelines: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Known flake on the CodeQL build, will force merge. |
Addresses issue envoyproxy#18498 - likely shows up legacy changes required for c++20 Signed-off-by: William A Rowe Jr <[email protected]>
Signed-off-by: Anthony Rossi [email protected]
Commit Message: Add support to DataSource to read data from environment variables.
Additional Description:
Risk Level: Low
Testing: Unit test for well-known environment variable, no environment variable, and empty environment variable.
Docs Changes: N/A
Release Notes: config: added environment_variable to the DataSource.
Platform Specific Features: N/A
Fixes #18277