vendor: Updates go-cni
This update will allow us to forcefully delete a Windows sandbox if its endpoint cannot be found anymore. Fixes: #6135 Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
This commit is contained in:
4
vendor/github.com/containerd/go-cni/cni.go
generated
vendored
4
vendor/github.com/containerd/go-cni/cni.go
generated
vendored
@@ -183,7 +183,9 @@ func (c *libcni) Remove(ctx context.Context, id string, path string, opts ...Nam
|
||||
// https://github.com/containernetworking/plugins/issues/210
|
||||
// TODO(random-liu): Remove the error handling when the issue is
|
||||
// fixed and the CNI spec v0.6.0 support is deprecated.
|
||||
if path == "" && strings.Contains(err.Error(), "no such file or directory") {
|
||||
// NOTE(claudiub): Some CNIs could return a "not found" error, which could mean that
|
||||
// it was already deleted.
|
||||
if (path == "" && strings.Contains(err.Error(), "no such file or directory")) || strings.Contains(err.Error(), "not found") {
|
||||
continue
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user