Orange-OpenSource / galera-operator

Galera Operator automates tasks for managing a Galera cluster in Kubernetes
Apache License 2.0
34 stars 18 forks source link

wrong result with operator galera metric #4

Open ldangeard-orange opened 4 years ago

ldangeard-orange commented 4 years ago

4 of 6 operator galera metric do not give the right values :

sebs42 commented 4 years ago

You are right, the main problem is that Galera objects (in the k8s point of view) are deleted before entering the check loop, so the operator is notified of a change but as the object is already destroyed, it cannot process it. An attend was made using finalizers but it didn't follow the principle I followed in the operator design : Using sub resources and give :

As the operator is stateless, the only solution is to write a ConfigMap with all informations to have these metrics accurate