foundation-model-stack / multi-nic-cni

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

add IsNotFound check #47

Closed sunya-ch closed 1 year ago

sunya-ch commented 1 year ago

This PR is to fix the bug point when the error from kubernetes API is not expected NotFound error. This bug could cause a serious result in losing the main CIDR information such as reported in https://github.com/foundation-model-stack/multi-nic-cni/issues/46.

This PR also fix the minor bug to delete CIDR resources when cleaning the config resource too.

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