-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Doc: Environment variables cannot be in config.string comments. #16689
base: main
Are you sure you want to change the base?
Doc: Environment variables cannot be in config.string comments. #16689
Conversation
… substitution logic.
Perhaps I am misunderstanding the issue but I thought that the problem here is that interpolation occurs regardless of whether the interpolation site is within a comment or not due to how the template is generated. This can lead to some somewhat confusing behavior where commented out sections still need values for interpolated values. The root of the issue is just the order of operations for interpolation in turning the information from template to instruction. SO instead of saying interpolation is not allowed instead should we describe the behavior and note that if you have interpolations anywhere in the string you need to ensure you have provided values? |
I wonder what benefits does end user get if we explain the interpolation behavior. |
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.
Suggested a few tweaks to both sentences.
Suggestion to revise the statements. Co-authored-by: João Duarte <[email protected]>
📃 DOCS PREVIEW ✨ https://logstash_bk_16689.docs-preview.app.elstc.co/diff |
Release notes
[rn:skip]
What does this PR do?
Adds a limitation where environment
${VAR}
s cannot be used inconfig.string
. To avoid pipeline run config failure,$
can be removed.Why is it important/What is the impact to the user?
From functional point of view, users are not impacted.
Checklist
[ ] My code follows the style guidelines of this project[ ] I have commented my code, particularly in hard-to-understand areas[ ] I have made corresponding change to the default configuration files (and/or docker env variables)[ ] I have added tests that prove my fix is effective or that my feature worksAuthor's Checklist
How to test this PR locally
Related issues
config.string
. #16625Use cases
Screenshots
Logs