Skip to content

Commit

Permalink
add some docs for unlike constrant
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-Johnson committed Dec 10, 2015
1 parent 0c7f87c commit 2f206de
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/docs/api.md
Expand Up @@ -416,5 +416,19 @@ Schedule jobs on nodes which attributes match a regular expression.

**Note:** This constraint applies to attributes of type `text` and `scalar` and elements in a `set`, but not `range`.

### UNLIKE constraint

Schedule jobs on nodes which attributes *do not* match a regular expression.

```json
{
...
"constraints": [["rack", "UNLIKE", "rack-[1-3]"]],
...
}
```

**Note:** This constraint applies to attributes of type `text` and `scalar` and elements in a `set`, but not `range`.

[json]: http://www.json.org/
[ISO 8601]: https://en.wikipedia.org/wiki/ISO_8601

0 comments on commit 2f206de

Please sign in to comment.