Skip to content

Commit 8e1578e

Browse files
authored
Merge pull request containerd#9677 from elezar/dependency-update-container-device-interface-v0.6.2
Update container-device-interface to v0.6.2
2 parents be9336f + 9dd29b3 commit 8e1578e

File tree

35 files changed

+399
-264
lines changed

35 files changed

+399
-264
lines changed

cmd/ctr/commands/run/run_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import (
2828
"strconv"
2929
"strings"
3030

31-
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
32-
"github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
3331
containerd "github.com/containerd/containerd/v2/client"
3432
"github.com/containerd/containerd/v2/cmd/ctr/commands"
3533
"github.com/containerd/containerd/v2/contrib/apparmor"
@@ -45,6 +43,8 @@ import (
4543
"github.com/intel/goresctrl/pkg/blockio"
4644
"github.com/opencontainers/runtime-spec/specs-go"
4745
"github.com/urfave/cli"
46+
"tags.cncf.io/container-device-interface/pkg/cdi"
47+
"tags.cncf.io/container-device-interface/pkg/parser"
4848
)
4949

5050
var platformRunFlags = []cli.Flag{

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ require (
88
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20230306123547-8075edf89bb0
99
github.com/Microsoft/go-winio v0.6.1
1010
github.com/Microsoft/hcsshim v0.12.0-rc.2
11-
github.com/container-orchestrated-devices/container-device-interface v0.6.1
1211
github.com/containerd/btrfs/v2 v2.0.0
1312
github.com/containerd/cgroups/v3 v3.0.3
1413
github.com/containerd/console v1.0.3
@@ -77,6 +76,7 @@ require (
7776
k8s.io/klog/v2 v2.100.1
7877
k8s.io/kubelet v0.28.2
7978
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2
79+
tags.cncf.io/container-device-interface v0.6.2
8080
)
8181

8282
require (
@@ -131,4 +131,5 @@ require (
131131
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
132132
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
133133
sigs.k8s.io/yaml v1.3.0 // indirect
134+
tags.cncf.io/container-device-interface/specs-go v0.6.0 // indirect
134135
)

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ github.com/cilium/ebpf v0.11.0/go.mod h1:WE7CZAnqOL2RouJ4f1uyNhqr2P4CCvXFIqdRDUg
3838
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
3939
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
4040
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 h1:/inchEIKaYC1Akx+H+gqO04wryn5h75LSazbRlnya1k=
41-
github.com/container-orchestrated-devices/container-device-interface v0.6.1 h1:mz77uJoP8im/4Zins+mPqt677ZMaflhoGaYrRAl5jvA=
42-
github.com/container-orchestrated-devices/container-device-interface v0.6.1/go.mod h1:40T6oW59rFrL/ksiSs7q45GzjGlbvxnA4xaK6cyq+kA=
4341
github.com/containerd/btrfs/v2 v2.0.0 h1:FN4wsx7KQrYoLXN7uLP0vBV4oVWHOIKDRQ1G2Z0oL5M=
4442
github.com/containerd/btrfs/v2 v2.0.0/go.mod h1:swkD/7j9HApWpzl8OHfrHNxppPd9l44DFZdF94BUj9k=
4543
github.com/containerd/cgroups/v3 v3.0.3 h1:S5ByHZ/h9PMe5IOQoN7E+nMc2UcLEM/V48DGDJ9kip0=
@@ -548,3 +546,7 @@ sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kF
548546
sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E=
549547
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
550548
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
549+
tags.cncf.io/container-device-interface v0.6.2 h1:dThE6dtp/93ZDGhqaED2Pu374SOeUkBfuvkLuiTdwzg=
550+
tags.cncf.io/container-device-interface v0.6.2/go.mod h1:Shusyhjs1A5Na/kqPVLL0KqnHQHuunol9LFeUNkuGVE=
551+
tags.cncf.io/container-device-interface/specs-go v0.6.0 h1:V+tJJN6dqu8Vym6p+Ru+K5mJ49WL6Aoc5SJFSY0RLsQ=
552+
tags.cncf.io/container-device-interface/specs-go v0.6.0/go.mod h1:hMAwAbMZyBLdmYqWgYcKH0F/yctNpV3P35f+/088A80=

pkg/cri/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,11 @@ type PluginConfig struct {
392392
// EnableCDI indicates to enable injection of the Container Device Interface Specifications
393393
// into the OCI config
394394
// For more details about CDI and the syntax of CDI Spec files please refer to
395-
// https://github.com/container-orchestrated-devices/container-device-interface.
395+
// https://tags.cncf.io/container-device-interface.
396396
EnableCDI bool `toml:"enable_cdi" json:"enableCDI"`
397397
// CDISpecDirs is the list of directories to scan for Container Device Interface Specifications
398398
// For more details about CDI configuration please refer to
399-
// https://github.com/container-orchestrated-devices/container-device-interface#containerd-configuration
399+
// https://tags.cncf.io/container-device-interface#containerd-configuration
400400
CDISpecDirs []string `toml:"cdi_spec_dirs" json:"cdiSpecDirs"`
401401

402402
// DrainExecSyncIOTimeout is the maximum duration to wait for ExecSync

pkg/cri/opts/spec_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import (
2626
"sync"
2727
"syscall"
2828

29-
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
3029
"github.com/containerd/cgroups/v3"
3130
"golang.org/x/sys/unix"
3231
runtime "k8s.io/cri-api/pkg/apis/runtime/v1"
32+
"tags.cncf.io/container-device-interface/pkg/cdi"
3333

3434
"github.com/containerd/containerd/v2/core/containers"
3535
"github.com/containerd/containerd/v2/pkg/oci"

pkg/cri/server/container_create_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"strings"
2626
"testing"
2727

28-
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
2928
"github.com/containerd/containerd/v2/contrib/apparmor"
3029
"github.com/containerd/containerd/v2/contrib/seccomp"
3130
"github.com/containerd/containerd/v2/core/containers"
@@ -38,6 +37,7 @@ import (
3837
"github.com/stretchr/testify/assert"
3938
"github.com/stretchr/testify/require"
4039
runtime "k8s.io/cri-api/pkg/apis/runtime/v1"
40+
"tags.cncf.io/container-device-interface/pkg/cdi"
4141

4242
"github.com/containerd/containerd/v2/pkg/cap"
4343
"github.com/containerd/containerd/v2/pkg/cri/annotations"

pkg/cri/server/service_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ package server
1919
import (
2020
"fmt"
2121

22-
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
2322
"github.com/opencontainers/selinux/go-selinux"
23+
"tags.cncf.io/container-device-interface/pkg/cdi"
2424

2525
"github.com/containerd/containerd/v2/pkg/cap"
2626
"github.com/containerd/containerd/v2/pkg/userns"

pkg/oci/spec_opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
"strconv"
2929
"strings"
3030

31-
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
3231
"github.com/containerd/containerd/v2/core/containers"
3332
"github.com/containerd/containerd/v2/core/content"
3433
"github.com/containerd/containerd/v2/core/images"
@@ -40,6 +39,7 @@ import (
4039
"github.com/moby/sys/user"
4140
v1 "github.com/opencontainers/image-spec/specs-go/v1"
4241
"github.com/opencontainers/runtime-spec/specs-go"
42+
"tags.cncf.io/container-device-interface/pkg/cdi"
4343
)
4444

4545
// SpecOpts sets spec specific information to a newly generated OCI spec

vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/oci.go

Lines changed: 0 additions & 113 deletions
This file was deleted.

vendor/modules.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ github.com/cilium/ebpf/internal/sys
8787
github.com/cilium/ebpf/internal/tracefs
8888
github.com/cilium/ebpf/internal/unix
8989
github.com/cilium/ebpf/link
90-
# github.com/container-orchestrated-devices/container-device-interface v0.6.1
91-
## explicit; go 1.17
92-
github.com/container-orchestrated-devices/container-device-interface/internal/multierror
93-
github.com/container-orchestrated-devices/container-device-interface/internal/validation
94-
github.com/container-orchestrated-devices/container-device-interface/internal/validation/k8s
95-
github.com/container-orchestrated-devices/container-device-interface/pkg/cdi
96-
github.com/container-orchestrated-devices/container-device-interface/pkg/parser
97-
github.com/container-orchestrated-devices/container-device-interface/specs-go
9890
# github.com/containerd/btrfs/v2 v2.0.0
9991
## explicit; go 1.19
10092
github.com/containerd/btrfs/v2
@@ -767,3 +759,13 @@ sigs.k8s.io/structured-merge-diff/v4/value
767759
# sigs.k8s.io/yaml v1.3.0
768760
## explicit; go 1.12
769761
sigs.k8s.io/yaml
762+
# tags.cncf.io/container-device-interface v0.6.2
763+
## explicit; go 1.19
764+
tags.cncf.io/container-device-interface/internal/multierror
765+
tags.cncf.io/container-device-interface/internal/validation
766+
tags.cncf.io/container-device-interface/internal/validation/k8s
767+
tags.cncf.io/container-device-interface/pkg/cdi
768+
tags.cncf.io/container-device-interface/pkg/parser
769+
# tags.cncf.io/container-device-interface/specs-go v0.6.0
770+
## explicit; go 1.19
771+
tags.cncf.io/container-device-interface/specs-go

0 commit comments

Comments
 (0)