NodeSelectorRequirement class

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

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The label key that the selector applies to.
final
operator String
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<String>?
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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. 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 NodeSelectorRequirement instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<NodeSelectorRequirement>
Creates a list of NodeSelectorRequirement from JSON data.