Skip to content

Commit

Permalink
Merge pull request #12890 from hashicorp/backport/docs-set-contains-a…
Browse files Browse the repository at this point in the history
…ny/adequately-stunning-cattle

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored May 5, 2022
2 parents 8411f99 + 587725c commit 4ed0d75
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/content/docs/job-specification/constraint.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ all groups (and tasks) in the job.
distinct_property
regexp
set_contains
set_contains_any
version
semver
is_set
Expand Down Expand Up @@ -179,6 +180,18 @@ constraint {
}
```

- `"set_contains_any"` - Specifies a contains constraint against the attribute. The
attribute and the list being checked are split using commas. This will check
that the given attribute contains **any** of the specified elements.

```hcl
constraint {
attribute = "..."
operator = "set_contains_any"
value = "a,b,c"
}
```

- `"version"` - Specifies a version constraint against the attribute. This
supports a comma-separated list of constraints, including the pessimistic
operator. `version` will not consider a prerelease (eg `1.6.0-beta`)
Expand Down

0 comments on commit 4ed0d75

Please sign in to comment.