Class 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 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)