foundation-model-stack / multi-nic-cni

https://foundation-model-stack.github.io/multi-nic-cni/
Apache License 2.0
33 stars 5 forks source link

implement SafeCache #36

Closed sunya-ch closed 1 year ago

sunya-ch commented 1 year ago

This PR is to handle the issue https://github.com/foundation-model-stack/multi-nic-cni/issues/33.

Here the SafeCache struct is implemented for handling any sharing cache including CIDRCache, IPPoolCache, HostInterfaceCache, and DaemonCache.

Also, to avoid keeping failure on the failed daemon, HostInterface update will be ignored if the daemon pod is missing.

Signed-off-by: Sunyanan Choochotkaew sunyanan.choochotkaew1@ibm.com