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 Operator status panels #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dragoangel
Copy link

@dragoangel dragoangel commented Aug 26, 2024

This PR fixes displaying status of Operator by using kube_pod_status_ready == 1 and remove requirement of having kube_pod_labels.

Also it provide more targeted operatorNamespace selector which is limited by webhook that unique to CloudNative-PG

kube_pod_labels will be still needed for topology.kubernetes.io/zone, but this usecase can't work without knowing labels, and well - it already has good (i) description, so it will relatively easy for users to utilize it if they already managed to create topology.kubernetes.io/zone aware cluster.

Only one query is requires kube_pod_labels - operator ready replicas. This metric by default on most of setups is not available. This PR implement:
- other way to achieve same result without relying on turned-off by default metric
- more targeted operatorNamespace selector which is limited by webhook that unique to CloudNative-PG

Signed-off-by: Dmitriy Alekseev <[email protected]>
@dragoangel dragoangel changed the title Remove dependency of having kube_pod_labels Fix Operator status panels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant