-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Protobuf contracts to top-level (#39)
* Move Proto contracts to top-level * Rename operator-scheduler APIs dir for consistency * Use symlink for scheduler APIs in operator * Fix import path in operator to use same generated Go as scheduler * Add Make target for scheduler Protos * Add Make targets for other Protos + simplify config * Use Proto import paths relative to import base (API root dir) * Simplify Proto generation further for API contracts * Fix Proto import paths in operator * Regenerate Go files from Protos * Remove Proto-generation Make targets from app-specific Makefiles The Proto-to-Golang generation is now handled within the API contracts dir, thus the application-specific generation is redundant and duplicative. * Fix Proto import path in proxy notebook * Fix Proto import path in local agent notebook * Fix Proto import path in local scheduler notebook * Fix Proto import path in k8s scheduler notebook * Add symlink for scheduler to API contracts * Remove leftover API experiment file
- Loading branch information
Showing
28 changed files
with
421 additions
and
2,216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
PROTOC_IMPORT_PATH := -I. | ||
|
||
PROTOC_GO_PATH := --go_opt=paths=source_relative | ||
PROTOC_GO_OUT := --go_out=. | ||
PROTOC_GO_GRPC_PATH := --go-grpc_opt=paths=source_relative | ||
PROTOC_GO_GRPC_OUT := --go-grpc_out=. | ||
PROTOC_GO_OPTIONS = $(PROTOC_GO_PATH) $(PROTOC_GO_OUT) $(PROTOC_GO_GRPC_PATH) $(PROTOC_GO_GRPC_OUT) | ||
|
||
.PHONY: build | ||
build: | ||
protoc \ | ||
$(PROTOC_IMPORT_PATH) \ | ||
$(PROTOC_GO_OPTIONS) \ | ||
./mlops/agent/agent.proto \ | ||
./mlops/proxy/proxy.proto \ | ||
./mlops/scheduler/scheduler.proto |
File renamed without changes.
312 changes: 157 additions & 155 deletions
312
scheduler/apis/mlops/agent/agent.pb.go → apis/mlops/agent/agent.pb.go
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
scheduler/apis/mlops/agent/agent_grpc.pb.go → apis/mlops/agent/agent_grpc.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes
153 changes: 77 additions & 76 deletions
153
scheduler/apis/mlops/proxy/proxy.pb.go → apis/mlops/proxy/proxy.pb.go
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
scheduler/apis/mlops/proxy/proxy_grpc.pb.go → apis/mlops/proxy/proxy_grpc.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes
Oops, something went wrong.