File tree 30 files changed +60
-60
lines changed 30 files changed +60
-60
lines changed Original file line number Diff line number Diff line change 1
1
# CDI - The Container Device Interface
2
2
3
- ** NOTE:** The API for injecting CDI devices that existed at ` github.com/ container-orchestrated-devices/container- device-interface/pkg` has been removed. Users of this API should migrate to the one at ` https://github.com/cncf-tags/ container-device-interface/tree/main /pkg/cdi` as this is actively maintained.
3
+ ** NOTE:** The API for injecting CDI devices that existed at ` container-device-interface/pkg ` has been removed. Users of this API should migrate to the one at ` container-device-interface/pkg/cdi ` as this is actively maintained.
4
4
5
5
## What is CDI?
6
6
188
188
189
189
[ Check out the Contributing document!] ( CONTRIBUTING.md )
190
190
191
- * Please let us know by [ filing a new issue] ( https://github.com/container-orchestrated-devices /container-device-interface/issues/new )
191
+ * Please let us know by [ filing a new issue] ( https://github.com/cncf-tags /container-device-interface/issues/new )
192
192
* You can contribute by opening a [ pull request] ( https://help.github.com/articles/using-pull-requests/ )
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ import (
22
22
"sort"
23
23
"strings"
24
24
25
- "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
26
25
oci "github.com/opencontainers/runtime-spec/specs-go"
27
26
gen "github.com/opencontainers/runtime-tools/generate"
27
+ "tags.cncf.io/container-device-interface/pkg/cdi"
28
28
)
29
29
30
30
func cdiListVendors () {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
"github.com/fsnotify/fsnotify"
26
26
"github.com/spf13/cobra"
27
27
28
- cdi "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi"
28
+ cdi "tags.cncf.io /container-device-interface/pkg/cdi"
29
29
)
30
30
31
31
type monitorFlags struct {
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ import (
22
22
23
23
"github.com/spf13/cobra"
24
24
25
- "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi"
26
- "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi/validate"
27
- "github.com/container-orchestrated-devices /container-device-interface/schema"
25
+ "tags.cncf.io /container-device-interface/pkg/cdi"
26
+ "tags.cncf.io /container-device-interface/pkg/cdi/validate"
27
+ "tags.cncf.io /container-device-interface/schema"
28
28
)
29
29
30
30
var (
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ import (
20
20
"fmt"
21
21
"strings"
22
22
23
- "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
24
23
"github.com/spf13/cobra"
24
+ "tags.cncf.io/container-device-interface/pkg/cdi"
25
25
)
26
26
27
27
type specFlags struct {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
24
24
"github.com/spf13/cobra"
25
25
26
- "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi"
26
+ "tags.cncf.io /container-device-interface/pkg/cdi"
27
27
)
28
28
29
29
// validateCmd is our CDI command for validating CDI Spec files in the registry.
Original file line number Diff line number Diff line change 1
- module github.com/container-orchestrated-devices /container-device-interface/cmd/cdi
1
+ module tags.cncf.io /container-device-interface/cmd/cdi
2
2
3
3
go 1.19
4
4
5
5
require (
6
- github.com/container-orchestrated-devices/container-device-interface v0.0.0
7
6
github.com/fsnotify/fsnotify v1.5.1
8
7
github.com/opencontainers/runtime-spec v1.1.0
9
8
github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626
10
9
github.com/spf13/cobra v1.6.0
11
10
sigs.k8s.io/yaml v1.3.0
11
+ tags.cncf.io/container-device-interface v0.0.0
12
12
)
13
13
14
14
require (
15
- github.com/container-orchestrated-devices/container-device-interface/specs-go v0.6.0 // indirect
16
15
github.com/inconshreveable/mousetrap v1.0.1 // indirect
17
16
github.com/opencontainers/selinux v1.10.0 // indirect
18
17
github.com/spf13/pflag v1.0.5 // indirect
@@ -23,8 +22,9 @@ require (
23
22
golang.org/x/mod v0.4.2 // indirect
24
23
golang.org/x/sys v0.1.0 // indirect
25
24
gopkg.in/yaml.v2 v2.4.0 // indirect
25
+ tags.cncf.io/container-device-interface/specs-go v0.6.0 // indirect
26
26
)
27
27
28
- replace github.com/container-orchestrated-devices /container-device-interface => ../..
28
+ replace tags.cncf.io /container-device-interface => ../..
29
29
30
- replace github.com/container-orchestrated-devices /container-device-interface/specs-go => ../../specs-go
30
+ replace tags.cncf.io /container-device-interface/specs-go => ../../specs-go
Original file line number Diff line number Diff line change 16
16
17
17
package main
18
18
19
- import "github.com/container-orchestrated-devices /container-device-interface/cmd/cdi/cmd"
19
+ import "tags.cncf.io /container-device-interface/cmd/cdi/cmd"
20
20
21
21
func main () {
22
22
cmd .Execute ()
Original file line number Diff line number Diff line change 1
- module github.com/container-orchestrated-devices /container-device-interface/cmd/validate
1
+ module tags.cncf.io /container-device-interface/cmd/validate
2
2
3
3
go 1.19
4
4
5
- require github.com/container-orchestrated-devices /container-device-interface v0.0.0
5
+ require tags.cncf.io /container-device-interface v0.0.0
6
6
7
7
require (
8
8
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
@@ -12,6 +12,6 @@ require (
12
12
sigs.k8s.io/yaml v1.3.0 // indirect
13
13
)
14
14
15
- replace github.com/container-orchestrated-devices /container-device-interface => ../..
15
+ replace tags.cncf.io /container-device-interface => ../..
16
16
17
- replace github.com/container-orchestrated-devices /container-device-interface/specs-go => ../../specs-go
17
+ replace tags.cncf.io /container-device-interface/specs-go => ../../specs-go
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
"io/ioutil"
26
26
"os"
27
27
28
- "github.com/container-orchestrated-devices /container-device-interface/schema"
28
+ "tags.cncf.io /container-device-interface/schema"
29
29
)
30
30
31
31
const usage = `Validate is used to check document with specified schema.
Original file line number Diff line number Diff line change 1
- module github.com/container-orchestrated-devices /container-device-interface
1
+ module tags.cncf.io /container-device-interface
2
2
3
3
go 1.19
4
4
5
5
require (
6
- github.com/container-orchestrated-devices/container-device-interface/specs-go v0.6.0
7
6
github.com/fsnotify/fsnotify v1.5.1
8
7
github.com/opencontainers/runtime-spec v1.1.0
9
8
github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626
@@ -12,6 +11,7 @@ require (
12
11
golang.org/x/mod v0.4.2
13
12
golang.org/x/sys v0.1.0
14
13
sigs.k8s.io/yaml v1.3.0
14
+ tags.cncf.io/container-device-interface/specs-go v0.6.0
15
15
)
16
16
17
17
require (
@@ -24,4 +24,4 @@ require (
24
24
gopkg.in/yaml.v3 v3.0.1 // indirect
25
25
)
26
26
27
- replace github.com/container-orchestrated-devices /container-device-interface/specs-go => ./specs-go
27
+ replace tags.cncf.io /container-device-interface/specs-go => ./specs-go
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
"fmt"
24
24
"strings"
25
25
26
- "github.com/container-orchestrated-devices /container-device-interface/internal/multierror"
26
+ "tags.cncf.io /container-device-interface/internal/multierror"
27
27
)
28
28
29
29
// TotalAnnotationSizeLimitB defines the maximum size of all annotations in characters.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
"fmt"
21
21
"strings"
22
22
23
- "github.com/container-orchestrated-devices /container-device-interface/internal/validation/k8s"
23
+ "tags.cncf.io /container-device-interface/internal/validation/k8s"
24
24
)
25
25
26
26
// ValidateSpecAnnotations checks whether spec annotations are valid.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"fmt"
22
22
"strings"
23
23
24
- "github.com/container-orchestrated-devices /container-device-interface/pkg/parser"
24
+ "tags.cncf.io /container-device-interface/pkg/parser"
25
25
)
26
26
27
27
const (
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ import (
26
26
"strings"
27
27
"sync"
28
28
29
- "github.com/container-orchestrated-devices/container-device-interface/internal/multierror"
30
- cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
31
29
"github.com/fsnotify/fsnotify"
32
30
oci "github.com/opencontainers/runtime-spec/specs-go"
31
+ "tags.cncf.io/container-device-interface/internal/multierror"
32
+ cdi "tags.cncf.io/container-device-interface/specs-go"
33
33
)
34
34
35
35
// Option is an option to change some aspect of default CDI behavior.
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ import (
27
27
"testing"
28
28
"time"
29
29
30
- "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi/validate"
31
- cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
32
30
oci "github.com/opencontainers/runtime-spec/specs-go"
33
31
"github.com/stretchr/testify/require"
34
32
"sigs.k8s.io/yaml"
33
+ "tags.cncf.io/container-device-interface/pkg/cdi/validate"
34
+ cdi "tags.cncf.io/container-device-interface/specs-go"
35
35
)
36
36
37
37
func TestNewCache (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ import (
24
24
"sort"
25
25
"strings"
26
26
27
- "github.com/container-orchestrated-devices/container-device-interface/specs-go"
28
27
oci "github.com/opencontainers/runtime-spec/specs-go"
29
28
ocigen "github.com/opencontainers/runtime-tools/generate"
29
+ "tags.cncf.io/container-device-interface/specs-go"
30
30
)
31
31
32
32
const (
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ package cdi
19
19
import (
20
20
"testing"
21
21
22
- cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
23
22
oci "github.com/opencontainers/runtime-spec/specs-go"
24
23
"github.com/stretchr/testify/require"
24
+ cdi "tags.cncf.io/container-device-interface/specs-go"
25
25
)
26
26
27
27
func TestValidateContainerEdits (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ package cdi
19
19
import (
20
20
"fmt"
21
21
22
- "github.com/container-orchestrated-devices/container-device-interface/internal/validation"
23
- "github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
24
- cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
25
22
oci "github.com/opencontainers/runtime-spec/specs-go"
23
+ "tags.cncf.io/container-device-interface/internal/validation"
24
+ "tags.cncf.io/container-device-interface/pkg/parser"
25
+ cdi "tags.cncf.io/container-device-interface/specs-go"
26
26
)
27
27
28
28
// Device represents a CDI device of a Spec.
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ package cdi
19
19
import (
20
20
"testing"
21
21
22
- cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
23
22
"github.com/stretchr/testify/require"
23
+ cdi "tags.cncf.io/container-device-interface/specs-go"
24
24
)
25
25
26
26
func TestDeviceValidate (t * testing.T ) {
Original file line number Diff line number Diff line change 2
2
// interacting with CDI and consuming CDI devices.
3
3
//
4
4
// For more information about Container Device Interface, please refer to
5
- // https://github.com/container-orchestrated-devices /container-device-interface
5
+ // https://tags.cncf.io /container-device-interface
6
6
//
7
7
// # Container Device Interface
8
8
//
48
48
//
49
49
// log "github.com/sirupsen/logrus"
50
50
//
51
- // "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi"
51
+ // "tags.cncf.io /container-device-interface/pkg/cdi"
52
52
// oci "github.com/opencontainers/runtime-spec/specs-go"
53
53
// )
54
54
//
91
91
//
92
92
// log "github.com/sirupsen/logrus"
93
93
//
94
- // "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi"
94
+ // "tags.cncf.io /container-device-interface/pkg/cdi"
95
95
// oci "github.com/opencontainers/runtime-spec/specs-go"
96
96
// )
97
97
//
172
172
//
173
173
// "fmt"
174
174
// ...
175
- // "github.com/container-orchestrated-devices /container-device-interface/specs-go"
176
- // "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi"
175
+ // "tags.cncf.io /container-device-interface/specs-go"
176
+ // "tags.cncf.io /container-device-interface/pkg/cdi"
177
177
//
178
178
// )
179
179
//
209
209
//
210
210
// "fmt"
211
211
// ...
212
- // "github.com/container-orchestrated-devices /container-device-interface/specs-go"
213
- // "github.com/container-orchestrated-devices /container-device-interface/pkg/cdi"
212
+ // "tags.cncf.io /container-device-interface/specs-go"
213
+ // "tags.cncf.io /container-device-interface/pkg/cdi"
214
214
//
215
215
// )
216
216
//
Original file line number Diff line number Diff line change 17
17
package cdi
18
18
19
19
import (
20
- "github.com/container-orchestrated-devices /container-device-interface/pkg/parser"
20
+ "tags.cncf.io /container-device-interface/pkg/parser"
21
21
)
22
22
23
23
// QualifiedName returns the qualified name for a device.
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ package cdi
19
19
import (
20
20
"sync"
21
21
22
- cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
23
22
oci "github.com/opencontainers/runtime-spec/specs-go"
23
+ cdi "tags.cncf.io/container-device-interface/specs-go"
24
24
)
25
25
26
26
// Registry keeps a cache of all CDI Specs installed or generated on
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ import (
28
28
oci "github.com/opencontainers/runtime-spec/specs-go"
29
29
"sigs.k8s.io/yaml"
30
30
31
- "github.com/container-orchestrated-devices /container-device-interface/internal/validation"
32
- cdi "github.com/container-orchestrated-devices /container-device-interface/specs-go"
31
+ "tags.cncf.io /container-device-interface/internal/validation"
32
+ cdi "tags.cncf.io /container-device-interface/specs-go"
33
33
)
34
34
35
35
const (
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ import (
26
26
27
27
"sigs.k8s.io/yaml"
28
28
29
- "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi/validate"
30
- "github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
31
- "github.com/container-orchestrated-devices/container-device-interface/schema"
32
- cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
33
29
"github.com/stretchr/testify/require"
30
+ "tags.cncf.io/container-device-interface/pkg/cdi/validate"
31
+ "tags.cncf.io/container-device-interface/pkg/parser"
32
+ "tags.cncf.io/container-device-interface/schema"
33
+ cdi "tags.cncf.io/container-device-interface/specs-go"
34
34
)
35
35
36
36
func TestReadSpec (t * testing.T ) {
Original file line number Diff line number Diff line change 17
17
package validate
18
18
19
19
import (
20
- "github.com/container-orchestrated-devices /container-device-interface/schema"
21
- raw "github.com/container-orchestrated-devices /container-device-interface/specs-go"
20
+ "tags.cncf.io /container-device-interface/schema"
21
+ raw "tags.cncf.io /container-device-interface/specs-go"
22
22
)
23
23
24
24
const (
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ import (
21
21
22
22
"golang.org/x/mod/semver"
23
23
24
- "github.com/container-orchestrated-devices /container-device-interface/pkg/parser"
25
- cdi "github.com/container-orchestrated-devices /container-device-interface/specs-go"
24
+ "tags.cncf.io /container-device-interface/pkg/parser"
25
+ cdi "tags.cncf.io /container-device-interface/specs-go"
26
26
)
27
27
28
28
const (
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ import (
29
29
30
30
"sigs.k8s.io/yaml"
31
31
32
- "github.com/container-orchestrated-devices/container-device-interface/internal/multierror"
33
- "github.com/container-orchestrated-devices/container-device-interface/internal/validation"
34
32
schema "github.com/xeipuuv/gojsonschema"
33
+ "tags.cncf.io/container-device-interface/internal/multierror"
34
+ "tags.cncf.io/container-device-interface/internal/validation"
35
35
)
36
36
37
37
const (
You can’t perform that action at this time.
0 commit comments