Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proto: bump to 1.6.x 2f6f381 #354

Merged
merged 6 commits into from
Jul 24, 2018
Merged

proto: bump to 1.6.x 2f6f381 #354

merged 6 commits into from
Jul 24, 2018

Conversation

chhsia0
Copy link
Contributor

@chhsia0 chhsia0 commented Jul 18, 2018

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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 58.153% when pulling 381eade on chhsia0:bump-1.6.x-2f6f381 into 29de6ff on mesos:master.

@coveralls
Copy link

coveralls commented Jul 18, 2018

Coverage Status

Coverage decreased (-0.3%) to 57.363% when pulling c11ae24 on chhsia0:bump-1.6.x-2f6f381 into 2928a8d on mesos:master.

@chhsia0 chhsia0 force-pushed the bump-1.6.x-2f6f381 branch 2 times, most recently from 82ed45f to e3a9d93 Compare July 18, 2018 22:40
@@ -239,7 +239,8 @@ message Response {
repeated OperationStatus operation_statuses = 1 [(gogoproto.nullable) = false];
}

optional ReconcileOperations reconcile_operations = 1;
optional Type type = 1 [(gogoproto.nullable) = false];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this tag change is unfortunate but aligns perfectly w/ upstream changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked with Gaston and confirmed that this was not used anywhere when introduced, so it should be a "safe" change.

@@ -221,6 +228,32 @@ func DestroyVolumes(a mesos.AgentID, v ...mesos.Resource) *master.Call {
}
}

// 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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it's more idiomatic to say volume, addition mesos.Resource (since they've of the same type)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also: mesos.AgentID is optional in the protos, so it should be a pointer here


// 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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mesos.AgentID is optional in protos, should be a pointer parameter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@jdef
Copy link
Contributor

jdef commented Jul 19, 2018

Thanks, left some feedback. Surprised that schedulerpb_test.go didn't have any changes

@jdef
Copy link
Contributor

jdef commented Jul 19, 2018 via email

@chhsia0
Copy link
Contributor Author

chhsia0 commented Jul 19, 2018

@jdef Done. PTAL.

@jdef jdef merged commit f27edc0 into mesos:master Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants