From a11911d20de2b8e178c617d44f4ee69dc27d1184 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Fri, 3 Jul 2015 17:33:46 +0200 Subject: [PATCH] Fixed notin operator in labels' selectors comments. --- pkg/labels/selector.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/labels/selector.go b/pkg/labels/selector.go index 9e585d3b9d..a1ca9a1eb6 100644 --- a/pkg/labels/selector.go +++ b/pkg/labels/selector.go @@ -618,7 +618,7 @@ func (p *Parser) parseExactValue() (util.StringSet, error) { // ::= KEY [ | // ::= "" | // ::= | -// ::= "not" +// ::= "notin" // ::= "in" // ::= "(" ")" // ::= VALUE | VALUE "," @@ -627,12 +627,12 @@ func (p *Parser) parseExactValue() (util.StringSet, error) { // VALUE is a sequence of zero or more characters "([A-Za-z0-9_-\.])". Max length is 64 character. // Delimiter is white space: (' ', '\t') // Example of valid syntax: -// "x in (foo,,baz),y,z not in ()" +// "x in (foo,,baz),y,z notin ()" // // Note: // (1) Inclusion - " in " - denotes that the KEY is equal to any of the // VALUEs in its requirement -// (2) Exclusion - " not in " - denotes that the KEY is not equal to any +// (2) Exclusion - " notin " - denotes that the KEY is not equal to any // of the VALUEs in its requirement // (3) The empty string is a valid VALUE // (4) A requirement with just a KEY - as in "y" above - denotes that