Closed chhsia0 closed 6 years ago
Thanks, left some feedback. Surprised that schedulerpb_test.go didn't have any changes
I'm fine w/ GrowVolume/ShrinkVolume
On Thu, Jul 19, 2018 at 1:56 PM Chun-Hung Hsiao notifications@github.com wrote:
@chhsia0 commented on this pull request.
In api/v1/lib/master/calls/calls.go https://github.com/mesos/mesos-go/pull/354#discussion_r203818174:
+// GrowLocalVolume grows a persistent volume on an agent's ROOT or PATH disks. The request is forwarded asynchronously +// to the Mesos agent where the persistent volume is located. +func GrowLocalVolume(a mesos.AgentID, volume mesos.Resource, addition mesos.Resource) *master.Call {
- return &master.Call{
- Type: master.Call_GROW_VOLUME,
- GrowVolume: &master.Call_GrowVolume{
- AgentID: &a,
- Volume: volume,
- Addition: addition,
- },
- } +}
+// ShrinkLocalVolume shrinks a persistent volume on an agent's ROOT or PATH disks. The request is forwarded +// asynchronously to the Mesos agent where the persistent volume is located. +func ShrinkLocalVolume(a mesos.AgentID, volume mesos.Resource, subtract mesos.Value_Scalar) *master.Call {
I'll make it a pointer. Then should I just rename it to GrowVolume/ ShrinkVolume? Currently it supports only local volumes but me may extend it to support external volumes in the future.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mesos/mesos-go/pull/354#discussion_r203818174, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPVLNWkO781DWvBzb6AXsMFyIrFHC3Xks5uIMhSgaJpZM4VVail .
@jdef Done. PTAL.
Updated Mesos protos to 1.6.x, which adds a new master call for GET_OPERATIONS, and new agent calls for GET_OPERATIONS, GROW_VOLUME and SHRINK_VOLUME. For the latter two, only agent-local volumes are supported.