Skip to content

Commit

Permalink
Merge branch 'move-go-mod-to-gh' into 'main'
Browse files Browse the repository at this point in the history
Rename go module to github.com/NVIDIA/vgpu-device-manager

See merge request nvidia/cloud-native/vgpu-device-manager!32
  • Loading branch information
cdesiniotis committed Dec 29, 2023
2 parents b9ebcf7 + 491b035 commit 1fbf351
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

MODULE := gitlab.com/nvidia/cloud-native/vgpu-device-manager
MODULE := github.com/NVIDIA/vgpu-device-manager

DOCKER ?= docker

Expand Down
2 changes: 1 addition & 1 deletion api/spec/v1/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package v1

import (
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/types"
"github.com/NVIDIA/vgpu-device-manager/pkg/types"
)

// MatchesDeviceFilter checks a 'VGPUConfigSpec' to see if its device filter matches the provided 'deviceID'.
Expand Down
3 changes: 2 additions & 1 deletion api/spec/v1/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ package v1
import (
"encoding/json"
"fmt"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/types"

"github.com/NVIDIA/vgpu-device-manager/pkg/types"
)

// Version indicates the version of the 'Spec' struct used to hold information on 'VGPUConfigs'.
Expand Down
3 changes: 2 additions & 1 deletion cmd/nvidia-vgpu-dm/apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import (

"github.com/sirupsen/logrus"
cli "github.com/urfave/cli/v2"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/cmd/nvidia-vgpu-dm/assert"

"github.com/NVIDIA/vgpu-device-manager/cmd/nvidia-vgpu-dm/assert"
)

var log = logrus.New()
Expand Down
8 changes: 4 additions & 4 deletions cmd/nvidia-vgpu-dm/apply/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ package apply
import (
"fmt"

v1 "gitlab.com/nvidia/cloud-native/vgpu-device-manager/api/spec/v1"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/cmd/nvidia-vgpu-dm/assert"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/types"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/vgpu"
v1 "github.com/NVIDIA/vgpu-device-manager/api/spec/v1"
"github.com/NVIDIA/vgpu-device-manager/cmd/nvidia-vgpu-dm/assert"
"github.com/NVIDIA/vgpu-device-manager/pkg/types"
"github.com/NVIDIA/vgpu-device-manager/pkg/vgpu"
)

// VGPUConfig applies the selected vGPU config to the node
Expand Down
5 changes: 3 additions & 2 deletions cmd/nvidia-vgpu-dm/assert/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ import (
"github.com/NVIDIA/go-nvlib/pkg/nvpci"
"github.com/sirupsen/logrus"
cli "github.com/urfave/cli/v2"
v1 "gitlab.com/nvidia/cloud-native/vgpu-device-manager/api/spec/v1"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/types"
"sigs.k8s.io/yaml"

v1 "github.com/NVIDIA/vgpu-device-manager/api/spec/v1"
"github.com/NVIDIA/vgpu-device-manager/pkg/types"
)

var log = logrus.New()
Expand Down
7 changes: 4 additions & 3 deletions cmd/nvidia-vgpu-dm/assert/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import (
"fmt"

"github.com/NVIDIA/go-nvlib/pkg/nvpci"
v1 "gitlab.com/nvidia/cloud-native/vgpu-device-manager/api/spec/v1"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/types"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/vgpu"

v1 "github.com/NVIDIA/vgpu-device-manager/api/spec/v1"
"github.com/NVIDIA/vgpu-device-manager/pkg/types"
"github.com/NVIDIA/vgpu-device-manager/pkg/vgpu"
)

// VGPUConfig asserts that the selected vGPU config is applied to the node
Expand Down
5 changes: 3 additions & 2 deletions cmd/nvidia-vgpu-dm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ import (

log "github.com/sirupsen/logrus"
cli "github.com/urfave/cli/v2"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/cmd/nvidia-vgpu-dm/apply"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/cmd/nvidia-vgpu-dm/assert"

"github.com/NVIDIA/vgpu-device-manager/cmd/nvidia-vgpu-dm/apply"
"github.com/NVIDIA/vgpu-device-manager/cmd/nvidia-vgpu-dm/assert"
)

// Flags represents the top level flags that can be passed to the vgpu-dm CLI
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gitlab.com/nvidia/cloud-native/vgpu-device-manager
module github.com/NVIDIA/vgpu-device-manager

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions pkg/vgpu/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/NVIDIA/go-nvlib/pkg/nvmdev"
"github.com/google/uuid"

"gitlab.com/nvidia/cloud-native/vgpu-device-manager/internal/nvlib"
"gitlab.com/nvidia/cloud-native/vgpu-device-manager/pkg/types"
"github.com/NVIDIA/vgpu-device-manager/internal/nvlib"
"github.com/NVIDIA/vgpu-device-manager/pkg/types"
)

// Manager represents a set of functions for managing vGPU configurations on a node
Expand Down

0 comments on commit 1fbf351

Please sign in to comment.