LabelSelectorExpression interface

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

Properties

key

key is a string of 63 characters or less, and must consist of alphanumeric characters, '-', '_' or '.'.

operator

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

values

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.

Property Details

key

key is a string of 63 characters or less, and must consist of alphanumeric characters, '-', '_' or '.'.

key?: string

Property Value

string

operator

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

operator?: string

Property Value

string

values

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.

values?: string[]

Property Value

string[]