Affinity class
Affinity is a group of affinity scheduling rules.
Constructors
- Affinity({NodeAffinity? nodeAffinity, PodAffinity? podAffinity, PodAntiAffinity? podAntiAffinity})
-
Default constructor.
const
-
Affinity.fromJson(Map<
String, dynamic> json) -
Creates a Affinity from JSON data.
factory
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