-
Notifications
You must be signed in to change notification settings - Fork 2k
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
spread stanza api and parsing #4528
Conversation
nomad/structs/structs.go
Outdated
if len(s.SpreadTarget) == 0 { | ||
// TODO(preetha): This should go away if we can assume even spread if there are no targets | ||
// In that case, the target percentages should be calculated at schedule time | ||
mErr.Errors = append(mErr.Errors, errors.New("Atleast one spread target value must be specified")) |
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.
would be nice to assume even spread
d253bab
to
6ec542a
Compare
8ec5642
to
ed4cb93
Compare
6ec542a
to
965ce06
Compare
e67aa05
to
b9839d6
Compare
…red count in each target. Added this as a new step in the stack and some unit tests
instead, calculate them based on delta between current and minimum value
Also addressed other small code review comments
ed4cb93
to
bb26ba3
Compare
b9839d6
to
edbc43d
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Builds on top of PR #4527, API and parsing layer for spread stanza