From 2f206deaf289333b2516c8308a74374e118ae404 Mon Sep 17 00:00:00 2001 From: Rob Johnson Date: Thu, 10 Dec 2015 16:37:33 +0000 Subject: [PATCH] add some docs for unlike constrant --- docs/docs/api.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/docs/api.md b/docs/docs/api.md index cbfefed10..191395c4f 100644 --- a/docs/docs/api.md +++ b/docs/docs/api.md @@ -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