Open ldangeard-orange opened 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
4 of 6 operator galera metric do not give the right values :
galera_operator_controller_clusters
is the same value ofgalera_operator_controller_clusters_created
, not number of clusters managed by the controllergalera_operator_controller_clusters_deleted
,galera_operator_controller_clusters_failed
andgalera_operator_controller_clusters_modified
always return 0