PodAffinityTerm class

Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key

Constructors

PodAffinityTerm({LabelSelector? labelSelector, LabelSelector? namespaceSelector, List<String>? namespaces, required String topologyKey})
Default constructor.
const
PodAffinityTerm.fromJson(Map<String, dynamic> json)
Creates a PodAffinityTerm from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
labelSelector LabelSelector?
A label query over a set of resources, in this case pods.
final
namespaces List<String>?
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
final
namespaceSelector LabelSelector?
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topologyKey String
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
final

Methods

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

Operators

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