Affinity class

Affinity is a group of affinity scheduling rules.

Constructors

Affinity({NodeAffinity? nodeAffinity, PodAffinity? podAffinity, PodAntiAffinity? podAntiAffinity})
The main constructor.
const
Affinity.fromJson(Map<String, dynamic> json)
Creates a Affinity from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
nodeAffinity NodeAffinity?
Describes node affinity scheduling rules for the pod.
final
podAffinity PodAffinity?
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
final
podAntiAffinity PodAntiAffinity?
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a Affinity 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<Affinity>
Creates a list of Affinity from JSON data.