-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor directory structure for provider-services
- Loading branch information
1 parent
b533860
commit 68fa118
Showing
52 changed files
with
310 additions
and
1,135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
##@ Development | ||
unit-test: | ||
go test ./... -tags=unit | ||
|
||
test: unit-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
module github.com/sky-uk/kfp-operator/provider-service/base | ||
|
||
go 1.20 | ||
|
||
require ( | ||
github.com/go-logr/logr v1.2.3 | ||
github.com/go-resty/resty/v2 v2.16.0 | ||
github.com/jarcoal/httpmock v1.3.1 | ||
github.com/onsi/ginkgo/v2 v2.8.0 | ||
github.com/onsi/gomega v1.25.0 | ||
github.com/sky-uk/kfp-operator v0.6.0 | ||
github.com/sky-uk/kfp-operator/argo/common v0.0.0-20241107144142-477120a374b9 | ||
github.com/spf13/viper v1.16.0 | ||
go.uber.org/zap v1.24.0 | ||
k8s.io/apimachinery v0.25.4 | ||
k8s.io/client-go v0.25.4 | ||
) | ||
|
||
require ( | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.2.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/docker/distribution v2.7.1+incompatible // indirect | ||
github.com/emicklei/go-restful/v3 v3.8.0 // indirect | ||
github.com/evanphx/json-patch v5.6.0+incompatible // indirect | ||
github.com/fsnotify/fsnotify v1.6.0 // indirect | ||
github.com/go-logr/zapr v1.2.3 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.5 // indirect | ||
github.com/go-openapi/jsonreference v0.20.0 // indirect | ||
github.com/go-openapi/swag v0.22.3 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect | ||
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/google/gnostic v0.5.7-v3refs // indirect | ||
github.com/google/go-cmp v0.5.9 // indirect | ||
github.com/google/gofuzz v1.2.0 // indirect | ||
github.com/google/uuid v1.3.0 // indirect | ||
github.com/hashicorp/hcl v1.0.0 // indirect | ||
github.com/imdario/mergo v0.3.15 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/magiconair/properties v1.8.7 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
github.com/opencontainers/go-digest v1.0.0 // indirect | ||
github.com/pelletier/go-toml/v2 v2.0.8 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/prometheus/client_golang v1.15.1 // indirect | ||
github.com/prometheus/client_model v0.3.0 // indirect | ||
github.com/prometheus/common v0.42.0 // indirect | ||
github.com/prometheus/procfs v0.9.0 // indirect | ||
github.com/spf13/afero v1.9.5 // indirect | ||
github.com/spf13/cast v1.5.1 // indirect | ||
github.com/spf13/jwalterweatherman v1.1.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/stretchr/testify v1.8.4 // indirect | ||
github.com/subosito/gotenv v1.4.2 // indirect | ||
github.com/thanhpk/randstr v1.0.4 // indirect | ||
go.uber.org/atomic v1.9.0 // indirect | ||
go.uber.org/multierr v1.8.0 // indirect | ||
golang.org/x/net v0.27.0 // indirect | ||
golang.org/x/oauth2 v0.11.0 // indirect | ||
golang.org/x/sys v0.22.0 // indirect | ||
golang.org/x/term v0.22.0 // indirect | ||
golang.org/x/text v0.16.0 // indirect | ||
golang.org/x/time v0.6.0 // indirect | ||
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
google.golang.org/protobuf v1.31.0 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/ini.v1 v1.67.0 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
k8s.io/api v0.25.4 // indirect | ||
k8s.io/apiextensions-apiserver v0.23.5 // indirect | ||
k8s.io/component-base v0.23.5 // indirect | ||
k8s.io/klog/v2 v2.70.1 // indirect | ||
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect | ||
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect | ||
sigs.k8s.io/controller-runtime v0.11.2 // indirect | ||
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect | ||
sigs.k8s.io/yaml v1.3.0 // indirect | ||
) | ||
|
||
replace k8s.io/kubernetes => k8s.io/kubernetes v1.11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
go 1.20 | ||
|
||
use ( | ||
. | ||
../.. | ||
../../argo/common | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
provider-service/internal/base/k8s_api.go → provider-service/base/pkg/k8s_api.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package base | ||
package pkg | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...r-service/internal/base/stream_message.go → provider-service/base/pkg/stream_message.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package base | ||
package pkg | ||
|
||
import "github.com/sky-uk/kfp-operator/argo/common" | ||
|
||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
include ../../../common.mk | ||
include ../../get-proto.mk | ||
include ../../common.mk | ||
include ../../docker-targets.mk | ||
include ./get-proto.mk | ||
|
||
IMG := kfp-operator-kfp-provider-eventing | ||
|
||
all: build | ||
|
@@ -12,18 +14,18 @@ mockgen: ## Download mockgen locally if necessary. | |
|
||
generate: protoc-gen-go mockgen ## Generate service definitions from protobuf | ||
$(call get-proto,github.com/google/ml-metadata,v1.5.0) | ||
protoc --go_out=. --go-grpc_out=ml_metadata \ | ||
protoc --go_out=. --go-grpc_out=internal/ml_metadata \ | ||
-I $(PROTOPATH)/github.com/google/[email protected]/ \ | ||
--go_opt=Mml_metadata/proto/metadata_store_service.proto=/ml_metadata \ | ||
--go_opt=Mml_metadata/proto/metadata_store.proto=/ml_metadata \ | ||
--go_opt=Mml_metadata/proto/metadata_source.proto=/ml_metadata \ | ||
--go_opt=Mml_metadata/proto/metadata_store_service.proto=/internal/ml_metadata \ | ||
--go_opt=Mml_metadata/proto/metadata_store.proto=/internal/ml_metadata \ | ||
--go_opt=Mml_metadata/proto/metadata_source.proto=/internal/ml_metadata \ | ||
--go-grpc_opt=module=ml_metadata/proto \ | ||
ml_metadata/proto/metadata_store_service.proto \ | ||
ml_metadata/proto/metadata_store.proto | ||
|
||
$(MOCKGEN) -destination ml_metadata/metadata_store_service_grpc_mock.go -package=ml_metadata -source=ml_metadata/metadata_store_service_grpc.pb.go | ||
$(MOCKGEN) -destination run_service_grpc_mock.go -package=kfp github.com/kubeflow/pipelines/backend/api/go_client RunServiceClient | ||
$(MOCKGEN) -destination job_service_grpc_mock.go -package=kfp github.com/kubeflow/pipelines/backend/api/go_client JobServiceClient | ||
$(MOCKGEN) -destination internal/ml_metadata/metadata_store_service_grpc_mock.go -package=ml_metadata -source=internal/ml_metadata/metadata_store_service_grpc.pb.go | ||
$(MOCKGEN) -destination internal/run_service_grpc_mock.go -package=internal github.com/kubeflow/pipelines/backend/api/go_client RunServiceClient | ||
$(MOCKGEN) -destination internal/job_service_grpc_mock.go -package=internal github.com/kubeflow/pipelines/backend/api/go_client JobServiceClient | ||
|
||
##@ Development | ||
|
||
|
@@ -38,8 +40,5 @@ test: unit-test decoupled-test | |
##@ Build | ||
|
||
build: generate | ||
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o bin/kfp-provider-service ../../cmd/kfp/main.go | ||
|
||
##@ Containers | ||
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o bin/kfp-provider-service cmd/main.go | ||
|
||
include ../../../docker-targets.mk |
6 changes: 3 additions & 3 deletions
6
provider-service/cmd/kfp/main.go → provider-service/kfp/cmd/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.