Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle pod delete with non-existent IPs
Added the graceful handling for cases when the IPAM gets del requests for IPs it did not allocate or not managing. This situation can happen when whereabouts is added later as IPAM for additional CNI in a cluster already deployed and processing pod deletion. When this happens, kubelet keeps calling whereabouts with del request for IPs it did not allocate and whereabouts keep returning errors. This becomes endless loop between kubelet, which holds on references to such pods and periodically keep calling all CNI and IPAMs to cleanup. With this fix, whereabouts will log such requests and return gracefully ending possibility of such loops.
- Loading branch information