Variables in comments in config files that are included are interpolated #10787
Labels
area:confmap
bug
Something isn't working
release:blocker
The issue must be resolved before cutting the next release
Describe the bug
String interpolation is being applied to comments in config files that are included from another config file, which can cause errors and prevent the collector from starting.
Steps to reproduce
Start the collector with the following config:
config.yaml
logging.yaml
What did you expect to see?
The collector should ignore the comment and carry on.
What did you see instead?
The collector tried to replace the variable in the comment with an environment variable that does not exist and exited with an error.
What version did you use?
v0.106.1
What config did you use?
See above
Environment
I've manually replicated this on MacOS, go 1.22.5, but I've also seen it fail in CI (Ubuntu, different go versions)
Additional context
Versions prior to v0.106.0 did not have this issue.
The text was updated successfully, but these errors were encountered: