Skip to content

Commit ef93dff

Browse files
committed
chore(operator): update go import paths to fix importing another project
1 parent a3a796e commit ef93dff

26 files changed

+50
-50
lines changed

operator/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ GIT_SHA := $(shell git rev-parse --short HEAD)
4040
GIT_TAG_LAST := $(shell git tag --list 'operator*' --sort=-v:refname | head -n 1 | cut -d/ -f2)
4141

4242
## GO Flags
43-
GO_LDFLAGS := -ldflags "-X github.com/NVIDIA/skyhook/internal/version.GIT_SHA=$(GIT_SHA) \
44-
-X github.com/NVIDIA/skyhook/internal/version.VERSION=$(VERSION)"
43+
GO_LDFLAGS := -ldflags "-X github.com/NVIDIA/skyhook/operator/internal/version.GIT_SHA=$(GIT_SHA) \
44+
-X github.com/NVIDIA/skyhook/operator/internal/version.VERSION=$(VERSION)"
4545
GOFLAGS := -mod=vendor
4646

4747
# DOCKER_CMD defines the container tool to be used for building images.
@@ -230,7 +230,7 @@ merge-coverage:
230230
echo "mode: set" > $(REPORTING)/cover.out
231231
## skip first line with +2
232232
tail -n +2 $(REPORTING)/temp-cover.out | sed '/mode: set/d' >> $(REPORTING)/cover.out
233-
$(sedrp) 's|^/.*skyhook/operator/(.*)$$|github\.com/NVIDIA/skyhook/\1|g' $(REPORTING)/cover.out
233+
$(sedrp) 's|^/.*skyhook/operator/(.*)$$|github\.com/NVIDIA/skyhook/operator/\1|g' $(REPORTING)/cover.out
234234

235235
.PHONY: lint
236236
lint: golangci-lint license-check ## Run golangci-lint linter & yamllint

operator/api/v1alpha1/skyhook_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"sort"
2828
"strings"
2929

30-
"github.com/NVIDIA/skyhook/internal/graph"
30+
"github.com/NVIDIA/skyhook/operator/internal/graph"
3131
corev1 "k8s.io/api/core/v1"
3232
"k8s.io/apimachinery/pkg/api/resource"
3333
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

operator/api/v1alpha1/skyhook_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"regexp"
2525
"strings"
2626

27-
"github.com/NVIDIA/skyhook/internal/graph"
28-
semver "github.com/NVIDIA/skyhook/internal/version"
27+
"github.com/NVIDIA/skyhook/operator/internal/graph"
28+
semver "github.com/NVIDIA/skyhook/operator/internal/version"
2929
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3030
"k8s.io/apimachinery/pkg/runtime"
3131
ctrl "sigs.k8s.io/controller-runtime"

operator/cmd/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ import (
4242
kzap "sigs.k8s.io/controller-runtime/pkg/log/zap"
4343
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
4444

45-
"github.com/NVIDIA/skyhook/api/v1alpha1"
46-
"github.com/NVIDIA/skyhook/internal/controller"
47-
"github.com/NVIDIA/skyhook/internal/version"
45+
"github.com/NVIDIA/skyhook/operator/api/v1alpha1"
46+
"github.com/NVIDIA/skyhook/operator/internal/controller"
47+
"github.com/NVIDIA/skyhook/operator/internal/version"
4848
"sigs.k8s.io/controller-runtime/pkg/webhook"
4949
//+kubebuilder:scaffold:imports
5050
)

operator/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/NVIDIA/skyhook
1+
module github.com/NVIDIA/skyhook/operator
22

33
go 1.24.0
44

operator/internal/controller/annotations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"encoding/json"
2323
"fmt"
2424

25-
"github.com/NVIDIA/skyhook/api/v1alpha1"
25+
"github.com/NVIDIA/skyhook/operator/api/v1alpha1"
2626
corev1 "k8s.io/api/core/v1"
2727
)
2828

operator/internal/controller/cert_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
"path/filepath"
3333
"time"
3434

35-
"github.com/NVIDIA/skyhook/api/v1alpha1"
35+
"github.com/NVIDIA/skyhook/operator/api/v1alpha1"
3636
corev1 "k8s.io/api/core/v1"
3737
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3838
)

operator/internal/controller/cluster_state_v2.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424
"strings"
2525
"time"
2626

27-
"github.com/NVIDIA/skyhook/api/v1alpha1"
28-
"github.com/NVIDIA/skyhook/internal/version"
29-
"github.com/NVIDIA/skyhook/internal/wrapper"
27+
"github.com/NVIDIA/skyhook/operator/api/v1alpha1"
28+
"github.com/NVIDIA/skyhook/operator/internal/version"
29+
"github.com/NVIDIA/skyhook/operator/internal/wrapper"
3030
"github.com/go-logr/logr"
3131
"sigs.k8s.io/controller-runtime/pkg/client"
3232

operator/internal/controller/cluster_state_v2_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import (
2222
. "github.com/onsi/ginkgo/v2"
2323
. "github.com/onsi/gomega"
2424

25-
"github.com/NVIDIA/skyhook/api/v1alpha1"
26-
skyhookNodesMock "github.com/NVIDIA/skyhook/internal/controller/mock"
27-
"github.com/NVIDIA/skyhook/internal/wrapper"
25+
"github.com/NVIDIA/skyhook/operator/api/v1alpha1"
26+
skyhookNodesMock "github.com/NVIDIA/skyhook/operator/internal/controller/mock"
27+
"github.com/NVIDIA/skyhook/operator/internal/wrapper"
2828
corev1 "k8s.io/api/core/v1"
2929
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3030
)

operator/internal/controller/event_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ package controller
2121
import (
2222
"context"
2323

24-
"github.com/NVIDIA/skyhook/api/v1alpha1"
25-
"github.com/NVIDIA/skyhook/internal/dal"
24+
"github.com/NVIDIA/skyhook/operator/api/v1alpha1"
25+
"github.com/NVIDIA/skyhook/operator/internal/dal"
2626
"github.com/go-logr/logr"
2727
"sigs.k8s.io/controller-runtime/pkg/client"
2828
"sigs.k8s.io/controller-runtime/pkg/event"

0 commit comments

Comments
 (0)