Merge pull request #45476 from thaJeztah/vendor_containerd_1.6.21
vendor: github.com/containerd/containerd v1.6.21
This commit is contained in:
commit
acce6043e0
10 changed files with 43 additions and 7 deletions
|
@ -25,7 +25,7 @@ require (
|
|||
github.com/bsphere/le_go v0.0.0-20200109081728-fc06dab2caa8
|
||||
github.com/cloudflare/cfssl v0.0.0-20180323000720-5d63dbd981b5
|
||||
github.com/containerd/cgroups/v3 v3.0.1
|
||||
github.com/containerd/containerd v1.6.21-0.20230406162538-c0efc63d3907
|
||||
github.com/containerd/containerd v1.6.21
|
||||
github.com/containerd/continuity v0.3.0
|
||||
github.com/containerd/fifo v1.1.0
|
||||
github.com/containerd/typeurl/v2 v2.1.0
|
||||
|
|
|
@ -370,8 +370,8 @@ github.com/containerd/containerd v1.5.0-beta.4/go.mod h1:GmdgZd2zA2GYIBZ0w09Zvgq
|
|||
github.com/containerd/containerd v1.5.0-rc.0/go.mod h1:V/IXoMqNGgBlabz3tHD2TWDoTJseu1FGOKuoA4nNb2s=
|
||||
github.com/containerd/containerd v1.5.1/go.mod h1:0DOxVqwDy2iZvrZp2JUx/E+hS0UNTVn7dJnIOwtYR4g=
|
||||
github.com/containerd/containerd v1.5.7/go.mod h1:gyvv6+ugqY25TiXxcZC3L5yOeYgEw0QMhscqVp1AR9c=
|
||||
github.com/containerd/containerd v1.6.21-0.20230406162538-c0efc63d3907 h1:77Ml66lA9zDrfdVBpNTAnxko/vm5YKRlDEJwkWgxYlg=
|
||||
github.com/containerd/containerd v1.6.21-0.20230406162538-c0efc63d3907/go.mod h1:apei1/i5Ux2FzrK6+DM/suEsGuK/MeVOfy8tR2q7Wnw=
|
||||
github.com/containerd/containerd v1.6.21 h1:eSTAmnvDKRPWan+MpSSfNyrtleXd86ogK9X8fMWpe/Q=
|
||||
github.com/containerd/containerd v1.6.21/go.mod h1:apei1/i5Ux2FzrK6+DM/suEsGuK/MeVOfy8tR2q7Wnw=
|
||||
github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y=
|
||||
github.com/containerd/continuity v0.0.0-20190815185530-f2a389ac0a02/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y=
|
||||
github.com/containerd/continuity v0.0.0-20191127005431-f65d91d395eb/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y=
|
||||
|
|
2
vendor/github.com/containerd/containerd/Vagrantfile
generated
vendored
2
vendor/github.com/containerd/containerd/Vagrantfile
generated
vendored
|
@ -93,7 +93,7 @@ EOF
|
|||
config.vm.provision "install-golang", type: "shell", run: "once" do |sh|
|
||||
sh.upload_path = "/tmp/vagrant-install-golang"
|
||||
sh.env = {
|
||||
'GO_VERSION': ENV['GO_VERSION'] || "1.19.8",
|
||||
'GO_VERSION': ENV['GO_VERSION'] || "1.19.9",
|
||||
}
|
||||
sh.inline = <<~SHELL
|
||||
#!/usr/bin/env bash
|
||||
|
|
1
vendor/github.com/containerd/containerd/container.go
generated
vendored
1
vendor/github.com/containerd/containerd/container.go
generated
vendored
|
@ -279,6 +279,7 @@ func (c *container) NewTask(ctx context.Context, ioCreate cio.Creator, opts ...N
|
|||
})
|
||||
}
|
||||
}
|
||||
request.RuntimePath = info.RuntimePath
|
||||
if info.Options != nil {
|
||||
any, err := typeurl.MarshalAny(info.Options)
|
||||
if err != nil {
|
||||
|
|
20
vendor/github.com/containerd/containerd/oci/spec_opts.go
generated
vendored
20
vendor/github.com/containerd/containerd/oci/spec_opts.go
generated
vendored
|
@ -663,6 +663,10 @@ func WithUser(userstr string) SpecOpts {
|
|||
return err
|
||||
}
|
||||
|
||||
// Use a read-only mount when trying to get user/group information
|
||||
// from the container's rootfs. Since the option does read operation
|
||||
// only, we append ReadOnly mount option to prevent the Linux kernel
|
||||
// from syncing whole filesystem in umount syscall.
|
||||
return mount.WithReadonlyTempMount(ctx, mounts, f)
|
||||
default:
|
||||
return fmt.Errorf("invalid USER value %s", userstr)
|
||||
|
@ -723,6 +727,10 @@ func WithUserID(uid uint32) SpecOpts {
|
|||
return err
|
||||
}
|
||||
|
||||
// Use a read-only mount when trying to get user/group information
|
||||
// from the container's rootfs. Since the option does read operation
|
||||
// only, we append ReadOnly mount option to prevent the Linux kernel
|
||||
// from syncing whole filesystem in umount syscall.
|
||||
return mount.WithReadonlyTempMount(ctx, mounts, setUser)
|
||||
}
|
||||
}
|
||||
|
@ -767,6 +775,10 @@ func WithUsername(username string) SpecOpts {
|
|||
return err
|
||||
}
|
||||
|
||||
// Use a read-only mount when trying to get user/group information
|
||||
// from the container's rootfs. Since the option does read operation
|
||||
// only, we append ReadOnly mount option to prevent the Linux kernel
|
||||
// from syncing whole filesystem in umount syscall.
|
||||
return mount.WithReadonlyTempMount(ctx, mounts, setUser)
|
||||
} else if s.Windows != nil {
|
||||
s.Process.User.Username = username
|
||||
|
@ -845,6 +857,10 @@ func WithAdditionalGIDs(userstr string) SpecOpts {
|
|||
return err
|
||||
}
|
||||
|
||||
// Use a read-only mount when trying to get user/group information
|
||||
// from the container's rootfs. Since the option does read operation
|
||||
// only, we append ReadOnly mount option to prevent the Linux kernel
|
||||
// from syncing whole filesystem in umount syscall.
|
||||
return mount.WithReadonlyTempMount(ctx, mounts, setAdditionalGids)
|
||||
}
|
||||
}
|
||||
|
@ -906,6 +922,10 @@ func WithAppendAdditionalGroups(groups ...string) SpecOpts {
|
|||
return err
|
||||
}
|
||||
|
||||
// Use a read-only mount when trying to get user/group information
|
||||
// from the container's rootfs. Since the option does read operation
|
||||
// only, we append ReadOnly mount option to prevent the Linux kernel
|
||||
// from syncing whole filesystem in umount syscall.
|
||||
return mount.WithReadonlyTempMount(ctx, mounts, setAdditionalGids)
|
||||
}
|
||||
}
|
||||
|
|
10
vendor/github.com/containerd/containerd/oci/spec_opts_windows.go
generated
vendored
10
vendor/github.com/containerd/containerd/oci/spec_opts_windows.go
generated
vendored
|
@ -68,6 +68,16 @@ func WithWindowNetworksAllowUnqualifiedDNSQuery() SpecOpts {
|
|||
}
|
||||
}
|
||||
|
||||
// WithProcessCommandLine replaces the command line on the generated spec
|
||||
func WithProcessCommandLine(cmdLine string) SpecOpts {
|
||||
return func(_ context.Context, _ Client, _ *containers.Container, s *Spec) error {
|
||||
setProcess(s)
|
||||
s.Process.Args = nil
|
||||
s.Process.CommandLine = cmdLine
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithHostDevices adds all the hosts device nodes to the container's spec
|
||||
//
|
||||
// Not supported on windows
|
||||
|
|
5
vendor/github.com/containerd/containerd/task.go
generated
vendored
5
vendor/github.com/containerd/containerd/task.go
generated
vendored
|
@ -139,6 +139,11 @@ type TaskInfo struct {
|
|||
RootFS []mount.Mount
|
||||
// Options hold runtime specific settings for task creation
|
||||
Options interface{}
|
||||
// RuntimePath is an absolute path that can be used to overwrite path
|
||||
// to a shim runtime binary.
|
||||
RuntimePath string
|
||||
|
||||
// runtime is the runtime name for the container, and cannot be changed.
|
||||
runtime string
|
||||
}
|
||||
|
||||
|
|
2
vendor/github.com/containerd/containerd/task_opts.go
generated
vendored
2
vendor/github.com/containerd/containerd/task_opts.go
generated
vendored
|
@ -49,7 +49,7 @@ func WithRootFS(mounts []mount.Mount) NewTaskOpts {
|
|||
// instead of resolving it from runtime name.
|
||||
func WithRuntimePath(absRuntimePath string) NewTaskOpts {
|
||||
return func(ctx context.Context, client *Client, info *TaskInfo) error {
|
||||
info.runtime = absRuntimePath
|
||||
info.RuntimePath = absRuntimePath
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
2
vendor/github.com/containerd/containerd/version/version.go
generated
vendored
2
vendor/github.com/containerd/containerd/version/version.go
generated
vendored
|
@ -23,7 +23,7 @@ var (
|
|||
Package = "github.com/containerd/containerd"
|
||||
|
||||
// Version holds the complete version number. Filled in at linking time.
|
||||
Version = "1.6.20+unknown"
|
||||
Version = "1.6.21+unknown"
|
||||
|
||||
// Revision is filled with the VCS (e.g. git) revision being used to build
|
||||
// the program at linking time.
|
||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -216,7 +216,7 @@ github.com/containerd/cgroups/v3/cgroup2/stats
|
|||
# github.com/containerd/console v1.0.3
|
||||
## explicit; go 1.13
|
||||
github.com/containerd/console
|
||||
# github.com/containerd/containerd v1.6.21-0.20230406162538-c0efc63d3907
|
||||
# github.com/containerd/containerd v1.6.21
|
||||
## explicit; go 1.17
|
||||
github.com/containerd/containerd
|
||||
github.com/containerd/containerd/api/events
|
||||
|
|
Loading…
Add table
Reference in a new issue