mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
containerd: v1.5.7-k3s2 (#4387)
Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
This commit is contained in:
parent
f7dcc139ff
commit
86c6924119
2
go.mod
2
go.mod
@ -9,7 +9,7 @@ replace (
|
|||||||
github.com/containerd/btrfs => github.com/containerd/btrfs v1.0.0
|
github.com/containerd/btrfs => github.com/containerd/btrfs v1.0.0
|
||||||
github.com/containerd/cgroups => github.com/containerd/cgroups v1.0.1
|
github.com/containerd/cgroups => github.com/containerd/cgroups v1.0.1
|
||||||
github.com/containerd/console => github.com/containerd/console v1.0.2
|
github.com/containerd/console => github.com/containerd/console v1.0.2
|
||||||
github.com/containerd/containerd => github.com/k3s-io/containerd v1.5.7-k3s1 // k3s-release/1.5
|
github.com/containerd/containerd => github.com/k3s-io/containerd v1.5.7-k3s2 // k3s-release/1.5
|
||||||
github.com/containerd/continuity => github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1
|
github.com/containerd/continuity => github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1
|
||||||
github.com/containerd/fifo => github.com/containerd/fifo v1.0.0
|
github.com/containerd/fifo => github.com/containerd/fifo v1.0.0
|
||||||
github.com/containerd/go-runc => github.com/containerd/go-runc v1.0.0
|
github.com/containerd/go-runc => github.com/containerd/go-runc v1.0.0
|
||||||
|
4
go.sum
4
go.sum
@ -556,8 +556,8 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV
|
|||||||
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
||||||
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
|
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
|
||||||
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
|
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
|
||||||
github.com/k3s-io/containerd v1.5.7-k3s1 h1:zL6q83W5GjsOTDaTnulq7s4pxw3/7bts5crf69QkGbk=
|
github.com/k3s-io/containerd v1.5.7-k3s2 h1:Nbx8V5pW+laFwWailSJSlL/hkeITu4eyP4aINHk/Llg=
|
||||||
github.com/k3s-io/containerd v1.5.7-k3s1/go.mod h1:hObOmrfY040ivCbFVvVnwQhAfGVTE/6DqD2WHFFmgX8=
|
github.com/k3s-io/containerd v1.5.7-k3s2/go.mod h1:hObOmrfY040ivCbFVvVnwQhAfGVTE/6DqD2WHFFmgX8=
|
||||||
github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1 h1:KEz2rd9IDbrQT8w6RibEYlwfTXiu0P6hQDE+6O4IJdI=
|
github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1 h1:KEz2rd9IDbrQT8w6RibEYlwfTXiu0P6hQDE+6O4IJdI=
|
||||||
github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ=
|
github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ=
|
||||||
github.com/k3s-io/cri-tools v1.21.0-k3s1 h1:MWQtAsx4HCNXenqU/B4V9eU6HMyafkd1PnW6d4HCfos=
|
github.com/k3s-io/cri-tools v1.21.0-k3s1 h1:MWQtAsx4HCNXenqU/B4V9eU6HMyafkd1PnW6d4HCfos=
|
||||||
|
24
vendor/github.com/containerd/containerd/pkg/cri/opts/spec_linux.go
generated
vendored
24
vendor/github.com/containerd/containerd/pkg/cri/opts/spec_linux.go
generated
vendored
@ -225,30 +225,6 @@ func WithMounts(osi osinterface.OS, config *runtime.ContainerConfig, extra []*ru
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
|
||||||
etcHosts = "/etc/hosts"
|
|
||||||
etcHostname = "/etc/hostname"
|
|
||||||
resolvConfPath = "/etc/resolv.conf"
|
|
||||||
)
|
|
||||||
|
|
||||||
// WithRelabeledContainerMounts relabels the default container mounts for files in /etc
|
|
||||||
func WithRelabeledContainerMounts(mountLabel string) oci.SpecOpts {
|
|
||||||
return func(ctx context.Context, client oci.Client, _ *containers.Container, s *runtimespec.Spec) (err error) {
|
|
||||||
if mountLabel == "" {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
for _, m := range s.Mounts {
|
|
||||||
switch m.Destination {
|
|
||||||
case etcHosts, etcHostname, resolvConfPath:
|
|
||||||
if err := label.Relabel(m.Source, mountLabel, false); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure mount point on which path is mounted, is shared.
|
// Ensure mount point on which path is mounted, is shared.
|
||||||
func ensureShared(path string, lookupMount func(string) (mount.Info, error)) error {
|
func ensureShared(path string, lookupMount func(string) (mount.Info, error)) error {
|
||||||
mountInfo, err := lookupMount(path)
|
mountInfo, err := lookupMount(path)
|
||||||
|
2
vendor/github.com/containerd/containerd/pkg/cri/server/container_create_linux.go
generated
vendored
2
vendor/github.com/containerd/containerd/pkg/cri/server/container_create_linux.go
generated
vendored
@ -192,7 +192,7 @@ func (c *criService) containerSpec(
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
specOpts = append(specOpts, customopts.WithMounts(c.os, config, extraMounts, mountLabel), customopts.WithRelabeledContainerMounts(mountLabel))
|
specOpts = append(specOpts, customopts.WithMounts(c.os, config, extraMounts, mountLabel))
|
||||||
|
|
||||||
if !c.config.DisableProcMount {
|
if !c.config.DisableProcMount {
|
||||||
// Change the default masked/readonly paths to empty slices
|
// Change the default masked/readonly paths to empty slices
|
||||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -184,7 +184,7 @@ github.com/containerd/cgroups/v2
|
|||||||
github.com/containerd/cgroups/v2/stats
|
github.com/containerd/cgroups/v2/stats
|
||||||
# github.com/containerd/console v1.0.3 => github.com/containerd/console v1.0.2
|
# github.com/containerd/console v1.0.3 => github.com/containerd/console v1.0.2
|
||||||
github.com/containerd/console
|
github.com/containerd/console
|
||||||
# github.com/containerd/containerd v1.5.7 => github.com/k3s-io/containerd v1.5.7-k3s1
|
# github.com/containerd/containerd v1.5.7 => github.com/k3s-io/containerd v1.5.7-k3s2
|
||||||
## explicit
|
## explicit
|
||||||
github.com/containerd/containerd
|
github.com/containerd/containerd
|
||||||
github.com/containerd/containerd/api/events
|
github.com/containerd/containerd/api/events
|
||||||
@ -3393,7 +3393,7 @@ sigs.k8s.io/yaml
|
|||||||
# github.com/containerd/btrfs => github.com/containerd/btrfs v1.0.0
|
# github.com/containerd/btrfs => github.com/containerd/btrfs v1.0.0
|
||||||
# github.com/containerd/cgroups => github.com/containerd/cgroups v1.0.1
|
# github.com/containerd/cgroups => github.com/containerd/cgroups v1.0.1
|
||||||
# github.com/containerd/console => github.com/containerd/console v1.0.2
|
# github.com/containerd/console => github.com/containerd/console v1.0.2
|
||||||
# github.com/containerd/containerd => github.com/k3s-io/containerd v1.5.7-k3s1
|
# github.com/containerd/containerd => github.com/k3s-io/containerd v1.5.7-k3s2
|
||||||
# github.com/containerd/continuity => github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1
|
# github.com/containerd/continuity => github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1
|
||||||
# github.com/containerd/fifo => github.com/containerd/fifo v1.0.0
|
# github.com/containerd/fifo => github.com/containerd/fifo v1.0.0
|
||||||
# github.com/containerd/go-runc => github.com/containerd/go-runc v1.0.0
|
# github.com/containerd/go-runc => github.com/containerd/go-runc v1.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user