mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
docs: Add is_set/is_not_set
This commit is contained in:
@@ -85,6 +85,8 @@ all groups (and tasks) in the job.
|
||||
regexp
|
||||
set_contains
|
||||
version
|
||||
is_set
|
||||
is_not_set
|
||||
```
|
||||
|
||||
For a detailed explanation of these values and their behavior, please see
|
||||
@@ -196,6 +198,13 @@ constraint {
|
||||
}
|
||||
```
|
||||
|
||||
- `"is_set"` - Specifies that a given attribute must be present. This can be
|
||||
combined with the `"!="` operator to require that an attribute has been set
|
||||
before checking for equality. The default behavior for `"!="` is to include
|
||||
nodes that don't have that attribute set.
|
||||
|
||||
- `"is_not_set"` - Specifies that a given attribute must not be present.
|
||||
|
||||
## `constraint` Examples
|
||||
|
||||
The following examples only show the `constraint` stanzas. Remember that the
|
||||
|
||||
Reference in New Issue
Block a user