mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Add set contains
This commit is contained in:
@@ -419,6 +419,12 @@ The `constraint` object supports the following keys:
|
||||
the attribute. This sets the operator to "regexp" and the `value`
|
||||
to the regular expression.
|
||||
|
||||
* `set_contains` - Specifies a set contains constraint against
|
||||
the attribute. This sets the operator to "set_contains" and the `value`
|
||||
to the what is specified. This will check that the given attribute contains
|
||||
each of the specified elements. The attribute and the list being checked are
|
||||
split using commas.
|
||||
|
||||
* `distinct_hosts` - `distinct_hosts` accepts a boolean value and defaults to
|
||||
`false`. If set, the scheduler will not co-locate any task groups on the same
|
||||
machine. This can be specified as a job constraint which applies the
|
||||
|
||||
@@ -443,6 +443,9 @@ The `Constraint` object supports the following keys:
|
||||
|
||||
* `regexp` - Allows the `RTarget` to be a regular expression to be matched.
|
||||
|
||||
* `set_contains` - Allows the `RTarget` to be a comma separated list of values
|
||||
that should be contained in the LTarget's value.
|
||||
|
||||
* `distinct_host` - If set, the scheduler will not co-locate any task groups on the same
|
||||
machine. This can be specified as a job constraint which applies the
|
||||
constraint to all task groups in the job, or as a task group constraint which
|
||||
|
||||
Reference in New Issue
Block a user