Skip to content

Commit

Permalink
Move csi under /cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
  • Loading branch information
lampajr committed Dec 4, 2024
1 parent b914614 commit 694053a
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PROJECT_BIN := $(PROJECT_PATH)/bin
GO ?= "$(shell which go)"
BFF_PATH := $(PROJECT_PATH)/clients/ui/bff
UI_PATH := $(PROJECT_PATH)/clients/ui/frontend
CSI_PATH := $(PROJECT_PATH)/clients/csi
CSI_PATH := $(PROJECT_PATH)/cmd/csi

# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.29
Expand Down Expand Up @@ -50,7 +50,7 @@ endif

# The BUILD_PATH is still the root
ifeq ($(IMG_REPO),model-registry-storage-initializer)
DOCKERFILE := Dockerfile.csi
DOCKERFILE := $(CSI_PATH)/Dockerfile.csi
endif

model-registry: build
Expand Down Expand Up @@ -229,7 +229,7 @@ lint:
.PHONY: lint/csi
lint/csi:
${GOLANGCI_LINT} run ${CSI_PATH}/main.go
${GOLANGCI_LINT} run ${CSI_PATH}/pkg/...
${GOLANGCI_LINT} run internal/csi/...

.PHONY: test
test: gen bin/envtest
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.csi → cmd/csi/Dockerfile.csi
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ COPY scripts/ scripts/
COPY pkg/ pkg/
COPY patches/ patches/
COPY templates/ templates/
# csi specific source code
COPY clients/csi/main.go clients/csi/
COPY clients/csi/pkg/ clients/csi/pkg/

# Download tools
RUN make deps
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions clients/csi/main.go → cmd/csi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"os"

"github.com/kubeflow/model-registry/clients/csi/pkg/modelregistry"
"github.com/kubeflow/model-registry/clients/csi/pkg/storage"
"github.com/kubeflow/model-registry/internal/csi/modelregistry"
"github.com/kubeflow/model-registry/internal/csi/storage"
"github.com/kubeflow/model-registry/pkg/openapi"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"strings"

"github.com/kubeflow/model-registry/clients/csi/pkg/constants"
"github.com/kubeflow/model-registry/internal/csi/constants"
"github.com/kubeflow/model-registry/pkg/openapi"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

kserve "github.com/kserve/kserve/pkg/agent/storage"
"github.com/kubeflow/model-registry/clients/csi/pkg/constants"
"github.com/kubeflow/model-registry/internal/csi/constants"
"github.com/kubeflow/model-registry/pkg/openapi"
)

Expand Down

0 comments on commit 694053a

Please sign in to comment.