Class AllocationResult
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha2.AllocationResult
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AllocationResultBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AllocationResult extends Object implements io.fabric8.kubernetes.api.builder.Editable<AllocationResultBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
AllocationResult contains attributes of an allocated resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AllocationResult()No args constructor for use in serializationAllocationResult(io.fabric8.kubernetes.api.model.NodeSelector availableOnNodes, List<ResourceHandle> resourceHandles, Boolean shareable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationResultBuilderedit()Map<String,Object>getAdditionalProperties()io.fabric8.kubernetes.api.model.NodeSelectorgetAvailableOnNodes()AllocationResult contains attributes of an allocated resource.List<ResourceHandle>getResourceHandles()ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim.BooleangetShareable()Shareable determines whether the resource supports more than one consumer at a time.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAvailableOnNodes(io.fabric8.kubernetes.api.model.NodeSelector availableOnNodes)AllocationResult contains attributes of an allocated resource.voidsetResourceHandles(List<ResourceHandle> resourceHandles)ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim.voidsetShareable(Boolean shareable)Shareable determines whether the resource supports more than one consumer at a time.AllocationResultBuildertoBuilder()
-
-
-
Constructor Detail
-
AllocationResult
public AllocationResult()
No args constructor for use in serialization
-
AllocationResult
public AllocationResult(io.fabric8.kubernetes.api.model.NodeSelector availableOnNodes, List<ResourceHandle> resourceHandles, Boolean shareable)
-
-
Method Detail
-
getAvailableOnNodes
public io.fabric8.kubernetes.api.model.NodeSelector getAvailableOnNodes()
AllocationResult contains attributes of an allocated resource.
-
setAvailableOnNodes
public void setAvailableOnNodes(io.fabric8.kubernetes.api.model.NodeSelector availableOnNodes)
AllocationResult contains attributes of an allocated resource.
-
getResourceHandles
public List<ResourceHandle> 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.
-
setResourceHandles
public void setResourceHandles(List<ResourceHandle> resourceHandles)
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.
-
getShareable
public Boolean getShareable()
Shareable determines whether the resource supports more than one consumer at a time.
-
setShareable
public void setShareable(Boolean shareable)
Shareable determines whether the resource supports more than one consumer at a time.
-
edit
public AllocationResultBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AllocationResultBuilder>
-
toBuilder
public AllocationResultBuilder toBuilder()
-
-