Skip to content
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

config: root route should have empty matchers #2780

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

philipgough
Copy link
Contributor

Unmarshal should validate that the root route does not contain any matchers. Prior to this change,
only the deprecated match structures were checked. It adds a check for matchers provided with the updated matching syntax.

Copy link
Contributor

@jan--f jan--f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this lgtm.

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a unit test for it? TestRootRouteHasNoMatcher() can be extended.

Unmarshal should validate that the root route does
not contain any matchers. Prior to this change,
only the deprecated match structures were checked.

Signed-off-by: Philip Gough <[email protected]>
@simonpasquier simonpasquier merged commit 4017d1a into prometheus:main Dec 17, 2021
@philipgough philipgough deleted the conf-validation branch December 17, 2021 15:48
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.

3 participants