open-nomad/helper
Alex Dadgar 2650bb1d12 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
..
args Speling police 2016-05-15 09:41:34 -07:00
discover Fix tests that exec nomad 2017-03-14 16:04:33 -07:00
fields Add comments and fix a typo 2016-04-11 23:09:09 +02:00
flag-helpers Fix Vault parsing of booleans 2016-10-10 18:04:39 -07:00
flatmap Job diff using generic structures 2016-05-10 22:23:34 -07:00
gated-writer agent: moving functions into helpers 2015-08-23 16:57:54 -07:00
stats Don't fail on first error detecting cpu stats 2017-07-03 14:51:02 -07:00
testtask Move task env into execcontext 2017-05-23 13:53:34 -07:00
tlsutil Fix vet script and fix vet problems 2017-02-27 16:00:19 -08:00
funcs.go Distinct Property supports arbitrary limit 2017-07-31 16:52:13 -07:00
funcs_test.go Round two of env var cleaning 2017-03-08 16:46:13 -08:00