LabelSelectorRequirement class

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

Constructors

LabelSelectorRequirement({required String key, required String operator, List<String>? values})
Default constructor.
const
LabelSelectorRequirement.fromJson(Map<String, dynamic> json)
Creates a LabelSelectorRequirement from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
key is the label key that the selector applies to.
final
operator String
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<String>?
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. This array is replaced during a strategic merge patch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a LabelSelectorRequirement instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited