Skip to content

Commit

Permalink
Merge pull request #172 from elezar/cncf
Browse files Browse the repository at this point in the history
Use tags.cncf.io URL in module names
  • Loading branch information
klihub authored Oct 31, 2023
2 parents 61e4b15 + 7f593fc commit fb50bf8
Show file tree
Hide file tree
Showing 30 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CDI - The Container Device Interface

**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.
**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.

## What is CDI?

Expand Down Expand Up @@ -188,5 +188,5 @@ EOF

[Check out the Contributing document!](CONTRIBUTING.md)

* Please let us know by [filing a new issue](https://github.com/container-orchestrated-devices/container-device-interface/issues/new)
* Please let us know by [filing a new issue](https://github.com/cncf-tags/container-device-interface/issues/new)
* You can contribute by opening a [pull request](https://help.github.com/articles/using-pull-requests/)
2 changes: 1 addition & 1 deletion cmd/cdi/cmd/cdi-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"sort"
"strings"

"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
oci "github.com/opencontainers/runtime-spec/specs-go"
gen "github.com/opencontainers/runtime-tools/generate"
"tags.cncf.io/container-device-interface/pkg/cdi"
)

func cdiListVendors() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cdi/cmd/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/fsnotify/fsnotify"
"github.com/spf13/cobra"

cdi "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
cdi "tags.cncf.io/container-device-interface/pkg/cdi"
)

type monitorFlags struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/cdi/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

"github.com/spf13/cobra"

"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi/validate"
"github.com/container-orchestrated-devices/container-device-interface/schema"
"tags.cncf.io/container-device-interface/pkg/cdi"
"tags.cncf.io/container-device-interface/pkg/cdi/validate"
"tags.cncf.io/container-device-interface/schema"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/cdi/cmd/specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"strings"

"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
"github.com/spf13/cobra"
"tags.cncf.io/container-device-interface/pkg/cdi"
)

type specFlags struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cdi/cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/spf13/cobra"

"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
"tags.cncf.io/container-device-interface/pkg/cdi"
)

// validateCmd is our CDI command for validating CDI Spec files in the registry.
Expand Down
10 changes: 5 additions & 5 deletions cmd/cdi/go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
module github.com/container-orchestrated-devices/container-device-interface/cmd/cdi
module tags.cncf.io/container-device-interface/cmd/cdi

go 1.19

require (
github.com/container-orchestrated-devices/container-device-interface v0.0.0
github.com/fsnotify/fsnotify v1.5.1
github.com/opencontainers/runtime-spec v1.1.0
github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626
github.com/spf13/cobra v1.6.0
sigs.k8s.io/yaml v1.3.0
tags.cncf.io/container-device-interface v0.0.0
)

require (
github.com/container-orchestrated-devices/container-device-interface/specs-go v0.6.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/opencontainers/selinux v1.10.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand All @@ -23,8 +22,9 @@ require (
golang.org/x/mod v0.4.2 // indirect
golang.org/x/sys v0.1.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
tags.cncf.io/container-device-interface/specs-go v0.6.0 // indirect
)

replace github.com/container-orchestrated-devices/container-device-interface => ../..
replace tags.cncf.io/container-device-interface => ../..

replace github.com/container-orchestrated-devices/container-device-interface/specs-go => ../../specs-go
replace tags.cncf.io/container-device-interface/specs-go => ../../specs-go
2 changes: 1 addition & 1 deletion cmd/cdi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package main

import "github.com/container-orchestrated-devices/container-device-interface/cmd/cdi/cmd"
import "tags.cncf.io/container-device-interface/cmd/cdi/cmd"

func main() {
cmd.Execute()
Expand Down
8 changes: 4 additions & 4 deletions cmd/validate/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/container-orchestrated-devices/container-device-interface/cmd/validate
module tags.cncf.io/container-device-interface/cmd/validate

go 1.19

require github.com/container-orchestrated-devices/container-device-interface v0.0.0
require tags.cncf.io/container-device-interface v0.0.0

require (
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
Expand All @@ -12,6 +12,6 @@ require (
sigs.k8s.io/yaml v1.3.0 // indirect
)

replace github.com/container-orchestrated-devices/container-device-interface => ../..
replace tags.cncf.io/container-device-interface => ../..

replace github.com/container-orchestrated-devices/container-device-interface/specs-go => ../../specs-go
replace tags.cncf.io/container-device-interface/specs-go => ../../specs-go
2 changes: 1 addition & 1 deletion cmd/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"io/ioutil"
"os"

"github.com/container-orchestrated-devices/container-device-interface/schema"
"tags.cncf.io/container-device-interface/schema"
)

const usage = `Validate is used to check document with specified schema.
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
module github.com/container-orchestrated-devices/container-device-interface
module tags.cncf.io/container-device-interface

go 1.19

require (
github.com/container-orchestrated-devices/container-device-interface/specs-go v0.6.0
github.com/fsnotify/fsnotify v1.5.1
github.com/opencontainers/runtime-spec v1.1.0
github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626
Expand All @@ -12,6 +11,7 @@ require (
golang.org/x/mod v0.4.2
golang.org/x/sys v0.1.0
sigs.k8s.io/yaml v1.3.0
tags.cncf.io/container-device-interface/specs-go v0.6.0
)

require (
Expand All @@ -24,4 +24,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/container-orchestrated-devices/container-device-interface/specs-go => ./specs-go
replace tags.cncf.io/container-device-interface/specs-go => ./specs-go
2 changes: 1 addition & 1 deletion internal/validation/k8s/objectmeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"fmt"
"strings"

"github.com/container-orchestrated-devices/container-device-interface/internal/multierror"
"tags.cncf.io/container-device-interface/internal/multierror"
)

// TotalAnnotationSizeLimitB defines the maximum size of all annotations in characters.
Expand Down
2 changes: 1 addition & 1 deletion internal/validation/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"strings"

"github.com/container-orchestrated-devices/container-device-interface/internal/validation/k8s"
"tags.cncf.io/container-device-interface/internal/validation/k8s"
)

// ValidateSpecAnnotations checks whether spec annotations are valid.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"strings"

"github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
"tags.cncf.io/container-device-interface/pkg/parser"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/cdi/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import (
"strings"
"sync"

"github.com/container-orchestrated-devices/container-device-interface/internal/multierror"
cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
"github.com/fsnotify/fsnotify"
oci "github.com/opencontainers/runtime-spec/specs-go"
"tags.cncf.io/container-device-interface/internal/multierror"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

// Option is an option to change some aspect of default CDI behavior.
Expand Down
4 changes: 2 additions & 2 deletions pkg/cdi/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import (
"testing"
"time"

"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi/validate"
cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
oci "github.com/opencontainers/runtime-spec/specs-go"
"github.com/stretchr/testify/require"
"sigs.k8s.io/yaml"
"tags.cncf.io/container-device-interface/pkg/cdi/validate"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

func TestNewCache(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/container-edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"sort"
"strings"

"github.com/container-orchestrated-devices/container-device-interface/specs-go"
oci "github.com/opencontainers/runtime-spec/specs-go"
ocigen "github.com/opencontainers/runtime-tools/generate"
"tags.cncf.io/container-device-interface/specs-go"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/container-edits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package cdi
import (
"testing"

cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
oci "github.com/opencontainers/runtime-spec/specs-go"
"github.com/stretchr/testify/require"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

func TestValidateContainerEdits(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/cdi/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ package cdi
import (
"fmt"

"github.com/container-orchestrated-devices/container-device-interface/internal/validation"
"github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
oci "github.com/opencontainers/runtime-spec/specs-go"
"tags.cncf.io/container-device-interface/internal/validation"
"tags.cncf.io/container-device-interface/pkg/parser"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

// Device represents a CDI device of a Spec.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package cdi
import (
"testing"

cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
"github.com/stretchr/testify/require"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

func TestDeviceValidate(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions pkg/cdi/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// interacting with CDI and consuming CDI devices.
//
// For more information about Container Device Interface, please refer to
// https://github.com/container-orchestrated-devices/container-device-interface
// https://tags.cncf.io/container-device-interface
//
// # Container Device Interface
//
Expand Down Expand Up @@ -48,7 +48,7 @@
//
// log "github.com/sirupsen/logrus"
//
// "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
// "tags.cncf.io/container-device-interface/pkg/cdi"
// oci "github.com/opencontainers/runtime-spec/specs-go"
// )
//
Expand Down Expand Up @@ -91,7 +91,7 @@
//
// log "github.com/sirupsen/logrus"
//
// "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
// "tags.cncf.io/container-device-interface/pkg/cdi"
// oci "github.com/opencontainers/runtime-spec/specs-go"
// )
//
Expand Down Expand Up @@ -172,8 +172,8 @@
//
// "fmt"
// ...
// "github.com/container-orchestrated-devices/container-device-interface/specs-go"
// "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
// "tags.cncf.io/container-device-interface/specs-go"
// "tags.cncf.io/container-device-interface/pkg/cdi"
//
// )
//
Expand Down Expand Up @@ -209,8 +209,8 @@
//
// "fmt"
// ...
// "github.com/container-orchestrated-devices/container-device-interface/specs-go"
// "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
// "tags.cncf.io/container-device-interface/specs-go"
// "tags.cncf.io/container-device-interface/pkg/cdi"
//
// )
//
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/qualified-device.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package cdi

import (
"github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
"tags.cncf.io/container-device-interface/pkg/parser"
)

// QualifiedName returns the qualified name for a device.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package cdi
import (
"sync"

cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
oci "github.com/opencontainers/runtime-spec/specs-go"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

// Registry keeps a cache of all CDI Specs installed or generated on
Expand Down
4 changes: 2 additions & 2 deletions pkg/cdi/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
oci "github.com/opencontainers/runtime-spec/specs-go"
"sigs.k8s.io/yaml"

"github.com/container-orchestrated-devices/container-device-interface/internal/validation"
cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
"tags.cncf.io/container-device-interface/internal/validation"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions pkg/cdi/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import (

"sigs.k8s.io/yaml"

"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi/validate"
"github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
"github.com/container-orchestrated-devices/container-device-interface/schema"
cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
"github.com/stretchr/testify/require"
"tags.cncf.io/container-device-interface/pkg/cdi/validate"
"tags.cncf.io/container-device-interface/pkg/parser"
"tags.cncf.io/container-device-interface/schema"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

func TestReadSpec(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/cdi/validate/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package validate

import (
"github.com/container-orchestrated-devices/container-device-interface/schema"
raw "github.com/container-orchestrated-devices/container-device-interface/specs-go"
"tags.cncf.io/container-device-interface/schema"
raw "tags.cncf.io/container-device-interface/specs-go"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/cdi/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (

"golang.org/x/mod/semver"

"github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
cdi "github.com/container-orchestrated-devices/container-device-interface/specs-go"
"tags.cncf.io/container-device-interface/pkg/parser"
cdi "tags.cncf.io/container-device-interface/specs-go"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (

"sigs.k8s.io/yaml"

"github.com/container-orchestrated-devices/container-device-interface/internal/multierror"
"github.com/container-orchestrated-devices/container-device-interface/internal/validation"
schema "github.com/xeipuuv/gojsonschema"
"tags.cncf.io/container-device-interface/internal/multierror"
"tags.cncf.io/container-device-interface/internal/validation"
)

const (
Expand Down
Loading

0 comments on commit fb50bf8

Please sign in to comment.