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
Basic support for maintenance mode of mesos #168
Basic support for maintenance mode of mesos #168
Conversation
looks good to me, thanks for the PR |
Discovered a bug while testing with mesos, so now a small fix as I was interpreting wrong the DurationInfo in last commit. |
mesos/match.go
Outdated
return nil | ||
} | ||
|
||
now := time.Now().UnixNano() |
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.
A bit of a nitpick but timestamps always puts my in worry about everything mode. So I think getting the current timestamp is better to do when we create the matcher (sent as an argument even) so the implementation can remain completely pure.
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.
👌
mesos/match_test.go
Outdated
}, | ||
}, | ||
) | ||
offerE := offer("offer-c", 1.8, 512.0, |
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 be "offer-e" in the id-string
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.
thanks!
Thanks a lot @zmalik |
As mentioned in #163 the basic support to reject offers if the node is currently in maintenance window.