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

fix: validate child routes #6931

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

simonpasquier
Copy link
Contributor

@simonpasquier simonpasquier commented Sep 12, 2024

Description

This change rejects AlertmanagerConfig objects with invalid child routes definition to cause problems in the configuration generation.

Closes #6277

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.


@simonpasquier simonpasquier requested a review from a team as a code owner September 12, 2024 10:15
This change rejects AlertmanagerConfig objects with invalid child routes
definition to cause problems in the configuration generation.

Closes prometheus-operator#6277

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Contributor

@philipgough philipgough left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

@nicolastakashi nicolastakashi left a comment

Choose a reason for hiding this comment

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

:shipit:

@simonpasquier simonpasquier merged commit 7fc97ea into prometheus-operator:main Sep 18, 2024
18 checks passed
@simonpasquier simonpasquier deleted the fix-6277 branch September 18, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid child routes in AlertmanagerConfig CRD triggers a panic
4 participants