-
Notifications
You must be signed in to change notification settings - Fork 806
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
Fix yaml empty node validation #5490
base: master
Are you sure you want to change the base?
Conversation
cf63a84
to
53e45ed
Compare
yaml: "flusher: { exit_after_flush: false }", | ||
stderrExcluded: "empty YAML node", |
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.
Hum.. why this should be invalid?
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.
This is a test case that fails under the old validation logic, but should not fail with the updated code.
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.
There are some more details in the linked issue.
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.
oh ok..
that make sense i guess...
Can i sign the DCO? |
Sure, do you want me to update the changelog as well? or is that automated? |
53e45ed
to
78b0b56
Compare
…tead of checking the struct after unmarshaling Signed-off-by: Joe Kralicky <[email protected]>
78b0b56
to
62b06f5
Compare
What this PR does:
This PR improves the yaml empty node validation for the cortex config by inspecting the yaml ast directly instead of checking the struct after unmarshaling.
Which issue(s) this PR fixes:
Fixes #5488
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]