mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-30 23:37:08 +00:00
Merge pull request #84 from dougbtv/backport-exit-zero-on-del-4.6
Bug 1905230: Multus should exit zero on DEL when cache file is missing [backport 4.6]
This commit is contained in:
commit
6fb56fdcbe
@ -758,7 +758,10 @@ func cmdDel(args *skel.CmdArgs, exec invoke.Exec, kubeClient *k8s.ClientInfo) er
|
||||
logging.Errorf("Multus: failed to get delegates: %v, but continue to delete clusterNetwork", err)
|
||||
}
|
||||
} else {
|
||||
return cmdErr(k8sArgs, "error reading the delegates: %v", err)
|
||||
// The options to continue with a delete have been exhausted (cachefile + API query didn't work)
|
||||
// We cannot exit with an error as this may cause a sandbox to never get deleted.
|
||||
logging.Errorf("Multus: failed to get the cached delegates file: %v, cannot properly delete", err)
|
||||
return nil
|
||||
}
|
||||
} else {
|
||||
defer os.Remove(path)
|
||||
|
Loading…
Reference in New Issue
Block a user