Add support for variable parser to handle : as default constant .#9451
Merged
blakerouse merged 9 commits intoelastic:mainfrom Aug 19, 2025
Merged
Add support for variable parser to handle : as default constant .#9451blakerouse merged 9 commits intoelastic:mainfrom
: as default constant .#9451blakerouse merged 9 commits intoelastic:mainfrom
Conversation
Contributor
|
This pull request does not have a backport label. Could you fix it @blakerouse? 🙏
|
: as default constant
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
cmacknz
reviewed
Aug 19, 2025
Member
cmacknz
left a comment
There was a problem hiding this comment.
Tested this and it fixes the problem, a couple questions about tests though
changelog/fragments/1755544412-Fix-default-constant-support-in-output-configuration.yaml
Outdated
Show resolved
Hide resolved
changelog/fragments/1755544412-Fix-default-constant-support-in-output-configuration.yaml
Outdated
Show resolved
Hide resolved
Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>
Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>
Contributor
Author
|
@cmacknz This is ready for another review. |
|
Contributor
💚 Build Succeeded
History
cc @blakerouse |
cmacknz
approved these changes
Aug 19, 2025
This was referenced Aug 19, 2025
Closed
Merged
5 tasks
Merged
5 tasks
kaanyalti
pushed a commit
to kaanyalti/elastic-agent
that referenced
this pull request
Sep 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What does this PR do?
Adds backwards compatibility for the
:that comes fromgo-ucfgthat was originally used in outputs before b59d51a was merged.The
:allows the following characters to be considered a constant where the|considers the following characters as a variable unless wrapped in quotes. This allows${ELASTICSEARCH_USERNAME:}to be used in outputs and work originally as it used to before variables provider was switch for output replacement.Why is it important?
This ensures that configurations that used the
go-ucfgsyntax in output configuration works as it always did, but continues to allow the composable providers in outputs.Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files./changelog/fragmentsusing the changelog tool[ ] I have added an integration test or an E2E test(covered in unit tests)Disruptive User Impact
None.
Related issues
:as default constant . #9451