Skip to content

Conversation

@simonpasquier
Copy link
Contributor

Description

This PR adds well-known Kubernetes labels to the app workloads managed by the operator. The longer-term goal is to configure more restrictive selection in statefulset/daemonset informers.

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 August 7, 2025 09:45
@simonpasquier simonpasquier force-pushed the consistent-app-labels branch from 81f4575 to 40ceb1c Compare August 7, 2025 09:47
@simonpasquier simonpasquier requested a review from slashpai August 7, 2025 12:05
Copy link
Contributor

@slashpai slashpai left a comment

Choose a reason for hiding this comment

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

nice :)

@simonpasquier simonpasquier merged commit 2fe0af3 into prometheus-operator:main Aug 8, 2025
23 checks passed
@simonpasquier simonpasquier deleted the consistent-app-labels branch September 18, 2025 15:33
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Sep 18, 2025
This is a follow-up of prometheus-operator#7786 which was only targeting workload resources
such as statefulsets, daemonsets and pods. With this commit, all
resources managed by the operator will be labelled with the
`app.kubernetes.io/managed-by: prometheus-operator` label.

Signed-off-by: Simon Pasquier <[email protected]>
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