etcd-cluster-operator icon indicating copy to clipboard operation
etcd-cluster-operator copied to clipboard

Create watch on etcd membership API

Open JamesLaverack opened this issue 6 years ago • 0 comments

We currently use watches to automatically reconcile when something we are observing changes. For resources in the Kubernetes API such as EtcdCluster, EtcdPeer, Service, and ReplicaSet this is natively supported. However we also want this watch behaviour on the etcd membership list.

Without this, we've resorted to a simple 10-second reconcile loop to pick up changes to the membership list. This results in us reconciling far more often than necessary.

We should implement a custom watch on the API, and avoid reconciling unless something has actually changed.

JamesLaverack avatar Nov 07 '19 16:11 JamesLaverack