From 4f102b865c0ee732c58df17cf724428cd5db3b62 Mon Sep 17 00:00:00 2001 From: Taewan Kim Date: Wed, 23 Aug 2023 13:56:16 +0900 Subject: [PATCH] Move the main.go file under the cmd folder according to Standard Go Project Layout - Some file permissions changed from 755 to 664 - Fix the package path of go get Change-Id: Ia7b845dd268fb16bac11bd940c584e450f0355cf Signed-off-by: Taewan Kim --- .gitignore | 0 Dockerfile | 2 +- Makefile | 4 ++-- main.go => cmd/kserve-adapter/main.go | 0 config/kserve-adapter.yaml | 0 docs/_static/logo.png | Bin docs/favicon.ico | Bin docs/user-guide.rst | 0 go.mod | 0 pkg/api/commons/url/url.go | 0 pkg/api/rest_server.go | 0 pkg/api/v1/preparation/preparation.go | 0 pkg/commons/logger/logger.go | 0 pkg/controller/v1/adapter/controller_test.go | 0 pkg/helm/chart_builder.go | 0 pkg/helm/chart_builder_test.go | 0 pkg/helm/config.go | 0 pkg/helm/data/resources/inf-alpha/Chart.yaml | 0 pkg/helm/data/resources/inf-alpha/templates/_helpers.tpl | 0 .../resources/inf-alpha/templates/inferenceservice.yaml | 0 pkg/helm/data/resources/inf-alpha/values.yaml | 0 pkg/helm/data/resources/inf-beta/Chart.yaml | 0 pkg/helm/data/resources/inf-beta/templates/_helpers.tpl | 0 .../data/resources/inf-beta/templates/inferenceservice.yaml | 0 pkg/helm/data/resources/inf-beta/values.yaml | 0 pkg/helm/data/resources/std/Chart.yaml | 0 pkg/helm/data/resources/std/templates/_helpers.tpl | 0 pkg/helm/data/resources/std/templates/appconfig.yaml | 0 pkg/helm/data/resources/std/templates/appenv.yaml | 0 pkg/helm/data/resources/std/templates/deployment.yaml | 0 pkg/helm/data/resources/std/templates/service.yaml | 0 pkg/helm/data/resources/std/values.yaml | 0 pkg/helm/data/sample_config.json | 0 pkg/helm/data/sample_schema.json | 0 pkg/helm/schema.go | 0 pkg/util/util.go | 0 sample/invalidServing/inferenceServing/values.yaml | 0 sample/validServing/inferenceServing/Chart.yaml | 0 sample/validServing/inferenceServing/templates/_helpers.tpl | 0 .../inferenceServing/templates/inferenceservice.yaml | 0 sample/validServing/inferenceServing/values.yaml | 0 tox.ini | 0 42 files changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 .gitignore mode change 100755 => 100644 Dockerfile rename main.go => cmd/kserve-adapter/main.go (100%) mode change 100755 => 100644 mode change 100755 => 100644 config/kserve-adapter.yaml mode change 100755 => 100644 docs/_static/logo.png mode change 100755 => 100644 docs/favicon.ico mode change 100755 => 100644 docs/user-guide.rst mode change 100755 => 100644 go.mod mode change 100755 => 100644 pkg/api/commons/url/url.go mode change 100755 => 100644 pkg/api/rest_server.go mode change 100755 => 100644 pkg/api/v1/preparation/preparation.go mode change 100755 => 100644 pkg/commons/logger/logger.go mode change 100755 => 100644 pkg/controller/v1/adapter/controller_test.go mode change 100755 => 100644 pkg/helm/chart_builder.go mode change 100755 => 100644 pkg/helm/chart_builder_test.go mode change 100755 => 100644 pkg/helm/config.go mode change 100755 => 100644 pkg/helm/data/resources/inf-alpha/Chart.yaml mode change 100755 => 100644 pkg/helm/data/resources/inf-alpha/templates/_helpers.tpl mode change 100755 => 100644 pkg/helm/data/resources/inf-alpha/templates/inferenceservice.yaml mode change 100755 => 100644 pkg/helm/data/resources/inf-alpha/values.yaml mode change 100755 => 100644 pkg/helm/data/resources/inf-beta/Chart.yaml mode change 100755 => 100644 pkg/helm/data/resources/inf-beta/templates/_helpers.tpl mode change 100755 => 100644 pkg/helm/data/resources/inf-beta/templates/inferenceservice.yaml mode change 100755 => 100644 pkg/helm/data/resources/inf-beta/values.yaml mode change 100755 => 100644 pkg/helm/data/resources/std/Chart.yaml mode change 100755 => 100644 pkg/helm/data/resources/std/templates/_helpers.tpl mode change 100755 => 100644 pkg/helm/data/resources/std/templates/appconfig.yaml mode change 100755 => 100644 pkg/helm/data/resources/std/templates/appenv.yaml mode change 100755 => 100644 pkg/helm/data/resources/std/templates/deployment.yaml mode change 100755 => 100644 pkg/helm/data/resources/std/templates/service.yaml mode change 100755 => 100644 pkg/helm/data/resources/std/values.yaml mode change 100755 => 100644 pkg/helm/data/sample_config.json mode change 100755 => 100644 pkg/helm/data/sample_schema.json mode change 100755 => 100644 pkg/helm/schema.go mode change 100755 => 100644 pkg/util/util.go mode change 100755 => 100644 sample/invalidServing/inferenceServing/values.yaml mode change 100755 => 100644 sample/validServing/inferenceServing/Chart.yaml mode change 100755 => 100644 sample/validServing/inferenceServing/templates/_helpers.tpl mode change 100755 => 100644 sample/validServing/inferenceServing/templates/inferenceservice.yaml mode change 100755 => 100644 sample/validServing/inferenceServing/values.yaml mode change 100755 => 100644 tox.ini diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/Dockerfile b/Dockerfile old mode 100755 new mode 100644 index 72ea1b5..3366a8d --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ COPY . . RUN go install github.com/golang/mock/mockgen@v1.6.0 && go generate ./... RUN go mod tidy -RUN go build -o kserve-adapter main.go +RUN go build -o kserve-adapter cmd/kserve-adapter/main.go FROM golang:1.19.8-bullseye diff --git a/Makefile b/Makefile index adaed53..5f18f89 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,8 @@ # ================================================================================== build: - go get . - go build -o kserve-adapter main.go + go get ./cmd/kserve-adapter + go build -o kserve-adapter cmd/kserve-adapter/main.go run: KUBECONFIG=~/.kube/config \ API_SERVER_PORT=10000 \ diff --git a/main.go b/cmd/kserve-adapter/main.go old mode 100755 new mode 100644 similarity index 100% rename from main.go rename to cmd/kserve-adapter/main.go diff --git a/config/kserve-adapter.yaml b/config/kserve-adapter.yaml old mode 100755 new mode 100644 diff --git a/docs/_static/logo.png b/docs/_static/logo.png old mode 100755 new mode 100644 diff --git a/docs/favicon.ico b/docs/favicon.ico old mode 100755 new mode 100644 diff --git a/docs/user-guide.rst b/docs/user-guide.rst old mode 100755 new mode 100644 diff --git a/go.mod b/go.mod old mode 100755 new mode 100644 diff --git a/pkg/api/commons/url/url.go b/pkg/api/commons/url/url.go old mode 100755 new mode 100644 diff --git a/pkg/api/rest_server.go b/pkg/api/rest_server.go old mode 100755 new mode 100644 diff --git a/pkg/api/v1/preparation/preparation.go b/pkg/api/v1/preparation/preparation.go old mode 100755 new mode 100644 diff --git a/pkg/commons/logger/logger.go b/pkg/commons/logger/logger.go old mode 100755 new mode 100644 diff --git a/pkg/controller/v1/adapter/controller_test.go b/pkg/controller/v1/adapter/controller_test.go old mode 100755 new mode 100644 diff --git a/pkg/helm/chart_builder.go b/pkg/helm/chart_builder.go old mode 100755 new mode 100644 diff --git a/pkg/helm/chart_builder_test.go b/pkg/helm/chart_builder_test.go old mode 100755 new mode 100644 diff --git a/pkg/helm/config.go b/pkg/helm/config.go old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-alpha/Chart.yaml b/pkg/helm/data/resources/inf-alpha/Chart.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-alpha/templates/_helpers.tpl b/pkg/helm/data/resources/inf-alpha/templates/_helpers.tpl old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-alpha/templates/inferenceservice.yaml b/pkg/helm/data/resources/inf-alpha/templates/inferenceservice.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-alpha/values.yaml b/pkg/helm/data/resources/inf-alpha/values.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-beta/Chart.yaml b/pkg/helm/data/resources/inf-beta/Chart.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-beta/templates/_helpers.tpl b/pkg/helm/data/resources/inf-beta/templates/_helpers.tpl old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-beta/templates/inferenceservice.yaml b/pkg/helm/data/resources/inf-beta/templates/inferenceservice.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/inf-beta/values.yaml b/pkg/helm/data/resources/inf-beta/values.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/std/Chart.yaml b/pkg/helm/data/resources/std/Chart.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/std/templates/_helpers.tpl b/pkg/helm/data/resources/std/templates/_helpers.tpl old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/std/templates/appconfig.yaml b/pkg/helm/data/resources/std/templates/appconfig.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/std/templates/appenv.yaml b/pkg/helm/data/resources/std/templates/appenv.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/std/templates/deployment.yaml b/pkg/helm/data/resources/std/templates/deployment.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/std/templates/service.yaml b/pkg/helm/data/resources/std/templates/service.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/resources/std/values.yaml b/pkg/helm/data/resources/std/values.yaml old mode 100755 new mode 100644 diff --git a/pkg/helm/data/sample_config.json b/pkg/helm/data/sample_config.json old mode 100755 new mode 100644 diff --git a/pkg/helm/data/sample_schema.json b/pkg/helm/data/sample_schema.json old mode 100755 new mode 100644 diff --git a/pkg/helm/schema.go b/pkg/helm/schema.go old mode 100755 new mode 100644 diff --git a/pkg/util/util.go b/pkg/util/util.go old mode 100755 new mode 100644 diff --git a/sample/invalidServing/inferenceServing/values.yaml b/sample/invalidServing/inferenceServing/values.yaml old mode 100755 new mode 100644 diff --git a/sample/validServing/inferenceServing/Chart.yaml b/sample/validServing/inferenceServing/Chart.yaml old mode 100755 new mode 100644 diff --git a/sample/validServing/inferenceServing/templates/_helpers.tpl b/sample/validServing/inferenceServing/templates/_helpers.tpl old mode 100755 new mode 100644 diff --git a/sample/validServing/inferenceServing/templates/inferenceservice.yaml b/sample/validServing/inferenceServing/templates/inferenceservice.yaml old mode 100755 new mode 100644 diff --git a/sample/validServing/inferenceServing/values.yaml b/sample/validServing/inferenceServing/values.yaml old mode 100755 new mode 100644 diff --git a/tox.ini b/tox.ini old mode 100755 new mode 100644 -- 2.16.6