AllocationResult class

AllocationResult contains attributes of an allocated resource.

Constructors

AllocationResult({NodeSelector? availableOnNodes, List<ResourceHandle>? resourceHandles, bool? shareable})
Default constructor.
const
AllocationResult.fromJson(Map<String, dynamic> json)
Creates a AllocationResult from JSON data.
factory

Properties

availableOnNodes NodeSelector?
This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim.
final
hashCode int
The hash code for this object.
no setterinherited
resourceHandles List<ResourceHandle>?
ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shareable bool?
Shareable determines whether the resource supports more than one consumer at a time.
final

Methods

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

Operators

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