WeightedPodAffinityTerm class
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s).
Constructors
- WeightedPodAffinityTerm({required PodAffinityTerm podAffinityTerm, required int weight})
-
Default constructor.
const
-
WeightedPodAffinityTerm.fromJson(Map<
String, dynamic> json) -
Creates a WeightedPodAffinityTerm from JSON data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- podAffinityTerm → PodAffinityTerm
-
Required. A pod affinity term, associated with the corresponding weight.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weight → int
-
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a WeightedPodAffinityTerm instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited