Skip to content

chore: inject related object into all events#7953

Merged
simonpasquier merged 1 commit intoprometheus-operator:mainfrom
simonpasquier:inject-related-into-events
Sep 26, 2025
Merged

chore: inject related object into all events#7953
simonpasquier merged 1 commit intoprometheus-operator:mainfrom
simonpasquier:inject-related-into-events

Conversation

@simonpasquier
Copy link
Contributor

@simonpasquier simonpasquier commented Sep 26, 2025

Description

This is a follow-up of #7867 which refactors the event handling to always inject the related object.

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.


This is a follow-up of prometheus-operator#7867 which refactors the event handling to
always inject the related object.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier requested a review from a team as a code owner September 26, 2025 13:52
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

@simonpasquier simonpasquier merged commit 6954e4e into prometheus-operator:main Sep 26, 2025
22 checks passed
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Nov 6, 2025
Pull requests prometheus-operator#7867 and prometheus-operator#7953 switched from the core Events API to the
new `events.k8s.io` API group but we forgot to update the RBAC
permissions of the prometheus-operator Service Account and the
verification which happens during the startup.

Closes prometheus-operator#8076

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Nov 6, 2025
Pull requests prometheus-operator#7867 and prometheus-operator#7953 switched from the core Events API to the
new `events.k8s.io` API group but we forgot to update the RBAC
permissions of the prometheus-operator Service Account and the
verification which happens during the startup.

Closes prometheus-operator#8076

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
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.

2 participants