Skip to content

Drop deprecated fields + use yaml.UnmarshalStrict()#673

Open
simonhammes wants to merge 2 commits intoprometheus:masterfrom
simonhammes:strict-config-parsing-drop-deprecated-fields
Open

Drop deprecated fields + use yaml.UnmarshalStrict()#673
simonhammes wants to merge 2 commits intoprometheus:masterfrom
simonhammes:strict-config-parsing-drop-deprecated-fields

Conversation

@simonhammes
Copy link

@simonhammes simonhammes commented Mar 17, 2026

This enables strict config parsing and removes all deprecated config fields (as suggested in #608 (comment)).

I also removed all test cases that turned out to be redundant.

Fixes #546

I also removed all test cases that turned out to be redundant

Signed-off-by: simonhammes <simonhammes@users.noreply.github.com>
Fixes prometheus#546

Supersedes prometheus#608

Signed-off-by: simonhammes <simonhammes@users.noreply.github.com>
@simonhammes simonhammes force-pushed the strict-config-parsing-drop-deprecated-fields branch from 497d016 to ce6961d Compare March 17, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reject configuration with unknown fields

1 participant