isovalent / olm-for-cilium

OpenShift Operator Lifecycle Manager for Cilium
Other
6 stars 4 forks source link

`cilium-olm` operator rewrites the `cilium-olm` ConfigMap about once every 2 seconds #88

Open domq opened 8 months ago

domq commented 8 months ago
watch -n 0.1 time oc -n cilium get ConfigMap cilium-olm -o jsonpath='"{ .metadata.resourceVersion }"'

shows the .metadata.resourceVersion increasing by 10–15 units every 2 seconds. (We can see that oc command is nearly instant, from the digits of time moving while the .metadata.resourceVersion stays fixed for a while, then increases as described.)

Lowering the Deployment's replicas to 0 stops the increase, at least until our OpenShift olm operator restores the replica count to 1.

domq commented 8 months ago

2 seconds is the defaultRetryPeriod in leader elections, which might indicate a problem there (since a successful leader presumably shouldn't have to retry?).