Remove error handling for getPod to force to proceed cmdDel.

In cmdDel, CNI Spec mentioned that plugin should proceed cmdDel
without any error, hence the change removes error returning
at cmdDel.

fix #822
This commit is contained in:
Tomofumi Hayashi
2022-04-05 02:03:33 +09:00
parent 4180f88442
commit 51c39205a8

View File

@@ -814,7 +814,8 @@ func CmdDel(args *skel.CmdArgs, exec invoke.Exec, kubeClient *k8s.ClientInfo) er
pod, err := getPod(kubeClient, k8sArgs, true)
if err != nil {
return err
// getPod may be failed but just do print error in its log and continue to delete
logging.Errorf("Multus: getPod failed: %v, but continue to delete", err)
}
// Read the cache to get delegates json for the pod