cybozu-go / coil

CNI plugin for Kubernetes designed for scalability and extensibility
Apache License 2.0
164 stars 20 forks source link

pkg/ipam: SyncPool always updates the pool information #133

Closed ymmt2005 closed 3 years ago

ymmt2005 commented 3 years ago

Previously, PoolManager.SyncPool did nothing for pools that have not allocate blocks with AllocateBlock method.

As a consequence, coil-controller did not expose the metrics for such pools.

This commit fixes the problem by making SyncPool always sync.