Class V1alpha2AllocationResult
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2AllocationResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T21:37:40.170033Z[Etc/UTC]")
public class V1alpha2AllocationResult
extends Object
AllocationResult contains attributes of an allocated resource.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddResourceHandlesItem
(V1alpha2ResourceHandle resourceHandlesItem) availableOnNodes
(V1NodeSelector availableOnNodes) boolean
Get availableOnNodesResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim.Shareable determines whether the resource supports more than one consumer at a time.int
hashCode()
resourceHandles
(List<V1alpha2ResourceHandle> resourceHandles) void
setAvailableOnNodes
(V1NodeSelector availableOnNodes) void
setResourceHandles
(List<V1alpha2ResourceHandle> resourceHandles) void
setShareable
(Boolean shareable) toString()
-
Field Details
-
SERIALIZED_NAME_AVAILABLE_ON_NODES
- See Also:
-
SERIALIZED_NAME_RESOURCE_HANDLES
- See Also:
-
SERIALIZED_NAME_SHAREABLE
- See Also:
-
-
Constructor Details
-
V1alpha2AllocationResult
public V1alpha2AllocationResult()
-
-
Method Details
-
availableOnNodes
-
getAvailableOnNodes
Get availableOnNodes- Returns:
- availableOnNodes
-
setAvailableOnNodes
-
resourceHandles
-
addResourceHandlesItem
-
getResourceHandles
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. Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.- Returns:
- resourceHandles
-
setResourceHandles
-
equals
-
hashCode
public int hashCode() -
toString
-