Class V1alpha2PodGroupSpec

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha2PodGroupSpec

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1alpha2PodGroupSpec extends Object
PodGroupSpec defines the desired state of a PodGroup.
  • Field Details

  • Constructor Details

  • Method Details

    • getSchedulingPolicy

      public V1alpha2PodGroupSchedulingPolicy getSchedulingPolicy()
      Returns:
      the schedulingPolicy property value
    • setSchedulingPolicy

      public void setSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy)
      Set the schedulingPolicy property value
      Parameters:
      schedulingPolicy - property value to set
    • schedulingPolicy

      public V1alpha2PodGroupSpec schedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy)
      Set schedulingPolicy in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • getDisruptionMode

      public String getDisruptionMode()
      DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      the disruptionMode property value
    • setDisruptionMode

      public void setDisruptionMode(String disruptionMode)
      Set the disruptionMode property value
      Parameters:
      disruptionMode - property value to set
    • disruptionMode

      public V1alpha2PodGroupSpec disruptionMode(String disruptionMode)
      Set disruptionMode in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • getPodGroupTemplateRef

      public V1alpha2PodGroupTemplateReference getPodGroupTemplateRef()
      Returns:
      the podGroupTemplateRef property value
    • setPodGroupTemplateRef

      public void setPodGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef)
      Set the podGroupTemplateRef property value
      Parameters:
      podGroupTemplateRef - property value to set
    • podGroupTemplateRef

      public V1alpha2PodGroupSpec podGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef)
      Set podGroupTemplateRef in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • getPriority

      public Integer getPriority()
      Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      the priority property value
    • setPriority

      public void setPriority(Integer priority)
      Set the priority property value
      Parameters:
      priority - property value to set
    • priority

      public V1alpha2PodGroupSpec priority(Integer priority)
      Set priority in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • getPriorityClassName

      public String getPriorityClassName()
      PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      the priorityClassName property value
    • setPriorityClassName

      public void setPriorityClassName(String priorityClassName)
      Set the priorityClassName property value
      Parameters:
      priorityClassName - property value to set
    • priorityClassName

      public V1alpha2PodGroupSpec priorityClassName(String priorityClassName)
      Set priorityClassName in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • getResourceClaims

      public List<@Valid V1alpha2PodGroupResourceClaim> getResourceClaims()
      ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.
      Returns:
      the resourceClaims property value
    • setResourceClaims

      public void setResourceClaims(List<@Valid V1alpha2PodGroupResourceClaim> resourceClaims)
      Set the resourceClaims property value
      Parameters:
      resourceClaims - property value to set
    • resourceClaims

      public V1alpha2PodGroupSpec resourceClaims(List<@Valid V1alpha2PodGroupResourceClaim> resourceClaims)
      Set resourceClaims in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • addResourceClaimsItem

      public V1alpha2PodGroupSpec addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem)
      Add an item to the resourceClaims property in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • getSchedulingConstraints

      public V1alpha2PodGroupSchedulingConstraints getSchedulingConstraints()
      Returns:
      the schedulingConstraints property value
    • setSchedulingConstraints

      public void setSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints)
      Set the schedulingConstraints property value
      Parameters:
      schedulingConstraints - property value to set
    • schedulingConstraints

      public V1alpha2PodGroupSpec schedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints)
      Set schedulingConstraints in a chainable fashion.
      Returns:
      The same instance of V1alpha2PodGroupSpec for chaining.
    • 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