Open
Description
We have sometimes a situation when a pod/statefulset/service/etc survives a PG cluster to which it belongs. This situation may (a) indicate a bug, (b) interfere with operator from functioning correctly (for example the operator does not move pods of unknown clusters from unschedulable nodes), and (c) occupy resources.
To ease monitoring and debugging such cases, we may create a REST endpoint(s) that will return a list of resources that match operator label selection yet does not belong to any of the Postgres clusters known by the operator. It should also be straightforward to piggyback fetching relevant info on the Sync
operation.
Please provide feedback and suggestions.