Class V1alpha2AllocationResult

java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2AllocationResult

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1alpha2AllocationResult extends Object
AllocationResult contains attributes of an allocated resource.
  • Field Details

  • Constructor Details

    • V1alpha2AllocationResult

      public V1alpha2AllocationResult()
  • Method Details

    • availableOnNodes

      public V1alpha2AllocationResult availableOnNodes(V1NodeSelector availableOnNodes)
    • getAvailableOnNodes

      @Nullable public V1NodeSelector getAvailableOnNodes()
      Get availableOnNodes
      Returns:
      availableOnNodes
    • setAvailableOnNodes

      public void setAvailableOnNodes(V1NodeSelector availableOnNodes)
    • resourceHandles

      public V1alpha2AllocationResult resourceHandles(List<V1alpha2ResourceHandle> resourceHandles)
    • addResourceHandlesItem

      public V1alpha2AllocationResult addResourceHandlesItem(V1alpha2ResourceHandle resourceHandlesItem)
    • getResourceHandles

      @Nullable public List<V1alpha2ResourceHandle> 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

      public void setResourceHandles(List<V1alpha2ResourceHandle> resourceHandles)
    • shareable

      public V1alpha2AllocationResult shareable(Boolean shareable)
    • getShareable

      @Nullable public Boolean getShareable()
      Shareable determines whether the resource supports more than one consumer at a time.
      Returns:
      shareable
    • setShareable

      public void setShareable(Boolean shareable)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object