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
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -110,7 +110,7 @@ github.com/containerd/continuity/testutil/loopback
|
||||
# github.com/containerd/fifo v1.0.0
|
||||
## explicit
|
||||
github.com/containerd/fifo
|
||||
# github.com/containerd/go-cni v1.1.0
|
||||
# github.com/containerd/go-cni v1.1.1-0.20211026134925-aa8bf14323a5
|
||||
## explicit
|
||||
github.com/containerd/go-cni
|
||||
# github.com/containerd/go-runc v1.0.0
|
||||
|
||||
Reference in New Issue
Block a user