Share via


LabelSelectorRequirement 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 the label key that the selector applies to.

operator

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

values

values is an array of string values, the values array must be non-empty.

Property Details

key

key is the label key that the selector applies to.

key?: string

Property Value

string

operator

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

operator?: string

Property Value

string

values

values is an array of string values, the values array must be non-empty.

values?: string[]

Property Value

string[]