-
Notifications
You must be signed in to change notification settings - Fork 146
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
[[--WIP--]] bump to mesos 1.5 protos, reservation refinements, et al. #335
Conversation
1 similar comment
api/v1/lib/resources.go
Outdated
if aa, bb := a.GetMetadata(), b.GetMetadata(); (aa == nil) != (bb == nil) { | ||
return false | ||
} else if !reflect.DeepEqual(aa.GetLabels(), bb.GetLabels()) { | ||
// TODO(jdef) can we do better than DeepEqual here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: consider something better here
api/v1/lib/resources.go
Outdated
|
||
// IsDisk returns true if this is a disk resource of the specified type. | ||
func (left *Resource) IsDisk(t Resource_DiskInfo_Source_Type) bool { | ||
if d := left.Disk; d != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this bomb if left is nil?
api/v1/lib/resources.go
Outdated
|
||
// HasResourceProvider returns true if the given Resource object is provided by a resource provider. | ||
func (left *Resource) HasResourceProvider() bool { | ||
return left.ProviderID != nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this bomb if left is nil?
) | ||
|
||
var ( | ||
opNoop = func(_ *mesos.Offer_Operation, _ mesos.Resources) (_ mesos.Resources, _ error) { return } | ||
opError = func(t mesos.Offer_Operation_Type) offerResourceOp { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: rename opUnsupported
…fleshed out validation for resources w/ disk, reservations, and shares
17e1924
to
8ef9d96
Compare
… refinements, resv push/pop
1 similar comment
https://issues.apache.org/jira/browse/MESOS-8237 (mesos allocation info/non-multi-role capable frameworks/libraries compat) |
@jdef https://issues.apache.org/jira/browse/MESOS-8237 was merged into master 5 days ago, and that change will soon be included in dcos/dcos master with dcos/dcos#2165 |
thanks for the update!
…On Wed, Dec 6, 2017 at 11:27 PM, Adam ***@***.***> wrote:
@jdef <https://github.com/jdef> https://issues.apache.org/
jira/browse/MESOS-8237 was merged into master 5 days ago, and that change
will soon be included in dcos/dcos master with dcos/dcos#2165
<dcos/dcos#2165>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#335 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACPVLF71WRlZTvhSatqxH0zPiJCmRN5Jks5s92k5gaJpZM4QUBwU>
.
|
superseded by #344 |
apache/mesos@1.4.0...a94e3cd
api/v1/lib/allocator/allocator.protoapi/v1/lib/executor/executor.protoapi/v1/lib/maintenance/maintenance.protoapi/v1/lib/quota/quota.protonon-proto changes:
deferred:
ReconcileOfferOperations
is a synchronous call but theResponse
scheduler protos haven't landed yet: https://docs.google.com/a/mesosphere.io/document/d/1GGh14SbPTItjiweSZfann4GZ6PCteNrn-1y4pxOjgcI/edit?disco=AAAABAZjNtg