Commit Graph

8 Commits

Author SHA1 Message Date
Alex Dadgar
ac1539d5d9 Sync namespace changes 2017-09-07 17:04:21 -07:00
Alex Dadgar
5a5e043b75 Review fixes 2017-08-01 14:18:52 -07:00
Alex Dadgar
4e71ba2e71 Distinct Property supports arbitrary limit
This PR enhances the distinct_property constraint such that a limit can
be specified in the RTarget/value parameter. This allows constraints
such as:

```
constraint {
  distinct_property = "${meta.rack}"
  value = "2"
}
```

This restricts any given rack from running more than 2 allocations from
the task group.

Fixes https://github.com/hashicorp/nomad/issues/1146
2017-07-31 16:52:13 -07:00
Alex Dadgar
dd4befbec2 Fix incorrect destructive update with distinct_property constraint
This PR fixes an issue in which an update to a task group with a
distinct property constraint would result in an incorrect destructive
update.
2017-07-31 11:17:35 -07:00
Alex Dadgar
336a976205 Fix in-place update 2017-03-09 22:03:10 -08:00
Alex Dadgar
cab1a8da95 Feedback addressed 2017-03-09 21:36:27 -08:00
Alex Dadgar
ddb9292424 Fix filtering issue and add a test that would catch it 2017-03-09 16:20:39 -08:00
Alex Dadgar
e4954a48c2 Refactor 2017-03-09 15:26:46 -08:00