Skip to content

Commit

Permalink
[YUNIKORN-907] Message and interface refactor (#56)
Browse files Browse the repository at this point in the history
The current interface wraps a number of smaller dedicated messages into
one large update message. This provides a simple interface to implement
with just one message to be handled. The complexity is hidden inside the
unwrapping of the message.
This change reverses the process by sending simple dedicated messages
and removing teh wrapping. Nodes, applications, allocations and
configuration are processed in their own functions.

The plugin is now defined as part of the SI and not in the core to start
breaking the dependency of the shim on the core.

Cleanup of spurious space, tabs and code re-generated based on the
latest changes.

Co-authored-by: Wilfred Spiegelenburg <[email protected]>

Fixes: #56
  • Loading branch information
manirajv06 authored and wilfred-s committed Nov 3, 2021
1 parent 179d222 commit 29e980c
Show file tree
Hide file tree
Showing 6 changed files with 954 additions and 685 deletions.
15 changes: 10 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ module github.com/apache/incubator-yunikorn-scheduler-interface
go 1.15

require (
google.golang.org/grpc v1.26.0
google.golang.org/protobuf v1.26.0
github.com/census-instrumentation/opencensus-proto v0.2.1 // indirect
github.com/envoyproxy/go-control-plane v0.7.1 // indirect
github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect
github.com/golang/protobuf v1.2.0 // indirect
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 // indirect
golang.org/x/exp v0.0.0-20190121172915-509febef88a4 // indirect
google.golang.org/appengine v1.4.0 // indirect
google.golang.org/grpc v1.23.1
google.golang.org/protobuf v1.26.0-rc.1
)

replace (
github.com/golang/protobuf => github.com/golang/protobuf v1.2.0
)
replace github.com/golang/protobuf => github.com/golang/protobuf v1.2.0
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/envoyproxy/go-control-plane v0.7.1/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
Expand Down
54 changes: 46 additions & 8 deletions lib/go/api/interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 29e980c

Please sign in to comment.