You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Operator deletes PodMonitor that it didn't create due to lack of owner reference check #6109
indeed finds the PodMonitor (that it doesn't have an owner reference on) and deletes it.
I worked around the issue by adding a short suffix to the PodMonitor name so that it wouldn't be deleted, but this isn't ideal because it changes the job label that Prometheus attaches to it.
As project maintainers, we have decided to deprecate the native integration with PodMonitor resources starting from version 1.28. We will delegate all functionality to the official upstream PodMonitor implementation. For more details, please take a look at issue #8075.
we should probably update the cnpg docs so they don't have explicit examples showing configs where the podmonitors will get deleted. will try to put together a PR. personally dont think we need the relabeling for doc examples, i didnt think the CNPG official dashboard had any references to it
Reacted by Ari Becker, Madhav Prabhu and Nikolay Zverochkin
Activity
Jean-Daniel commentedon Feb 27, 2025
I'm also impacted by this issue.
Note that if you need to create your own PodMonitor but want to keep the same job label, you can override it using relabelings:
github-actions commentedon May 18, 2025
This issue is stale because it has been open for 60 days with no activity.
sorrison commentedon May 18, 2025
bump to keep open
SeaRoll commentedon Jul 8, 2025
Have the same problem
gbartolini commentedon Jul 21, 2025
As project maintainers, we have decided to deprecate the native integration with PodMonitor resources starting from version 1.28. We will delegate all functionality to the official upstream PodMonitor implementation. For more details, please take a look at issue #8075.
runningman84 commentedon Nov 22, 2025
I get that you want to deprecate it but right now it is deleting my custom resources even if the operator did not create them in the first place.
veshant commentedon Nov 24, 2025
This is happening for me too
christiaangoossens commentedon Dec 21, 2025
Issue is still happening, hopefully #9340 gets merged soon.
fix: podmonitor name cant match cluster name
fix: podmonitor name cant match cluster name
fix: podmonitor name cant match cluster name
fix: podmonitor name cant match cluster name
ardentperf commentedon Jan 15, 2026
we should probably update the cnpg docs so they don't have explicit examples showing configs where the podmonitors will get deleted. will try to put together a PR. personally dont think we need the relabeling for doc examples, i didnt think the CNPG official dashboard had any references to it
fix: podmonitor name cant match cluster name
docs: Update PodMonitor examples to use distinct names from clusters
fix: add ownership check before deleting PodMonitor (#9340)
fix: add ownership check before deleting PodMonitor (#9340)
fix: add ownership check before deleting PodMonitor (#9340)
fix: add ownership check before deleting PodMonitor (#9340)
fix: podmonitor name cant match cluster name (#57)
fix: add ownership check before deleting PodMonitor (#9340)