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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) Add an item to the resourceClaims property in a chainable fashion.disruptionMode(String disruptionMode) Set disruptionMode in a chainable fashion.booleanDisruptionMode defines the mode in which a given PodGroup can be disrupted.Priority is the value of priority of this pod group.PriorityClassName defines the priority that should be considered when scheduling this pod group.List<@Valid V1alpha2PodGroupResourceClaim> ResourceClaims defines which ResourceClaims may be shared among Pods in the group.inthashCode()podGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef) Set podGroupTemplateRef in a chainable fashion.Set priority in a chainable fashion.priorityClassName(String priorityClassName) Set priorityClassName in a chainable fashion.resourceClaims(List<@Valid V1alpha2PodGroupResourceClaim> resourceClaims) Set resourceClaims in a chainable fashion.schedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) Set schedulingConstraints in a chainable fashion.schedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) Set schedulingPolicy in a chainable fashion.voidsetDisruptionMode(String disruptionMode) Set the disruptionMode property valuevoidsetPodGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef) Set the podGroupTemplateRef property valuevoidsetPriority(Integer priority) Set the priority property valuevoidsetPriorityClassName(String priorityClassName) Set the priorityClassName property valuevoidsetResourceClaims(List<@Valid V1alpha2PodGroupResourceClaim> resourceClaims) Set the resourceClaims property valuevoidsetSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) Set the schedulingConstraints property valuevoidsetSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) Set the schedulingPolicy property valuetoString()
-
Field Details
-
JSON_PROPERTY_SCHEDULING_POLICY
- See Also:
-
JSON_PROPERTY_DISRUPTION_MODE
- See Also:
-
JSON_PROPERTY_POD_GROUP_TEMPLATE_REF
- See Also:
-
JSON_PROPERTY_PRIORITY
- See Also:
-
JSON_PROPERTY_PRIORITY_CLASS_NAME
- See Also:
-
JSON_PROPERTY_RESOURCE_CLAIMS
- See Also:
-
JSON_PROPERTY_SCHEDULING_CONSTRAINTS
- See Also:
-
-
Constructor Details
-
V1alpha2PodGroupSpec
-
-
Method Details
-
getSchedulingPolicy
- Returns:
- the schedulingPolicy property value
-
setSchedulingPolicy
Set the schedulingPolicy property value- Parameters:
schedulingPolicy- property value to set
-
schedulingPolicy
Set schedulingPolicy in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupSpec for chaining.
-
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
Set the disruptionMode property value- Parameters:
disruptionMode- property value to set
-
disruptionMode
Set disruptionMode in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupSpec for chaining.
-
getPodGroupTemplateRef
- Returns:
- the podGroupTemplateRef property value
-
setPodGroupTemplateRef
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
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
Set the priority property value- Parameters:
priority- property value to set
-
priority
Set priority in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupSpec for chaining.
-
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
Set the priorityClassName property value- Parameters:
priorityClassName- property value to set
-
priorityClassName
Set priorityClassName in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupSpec for chaining.
-
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
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
Add an item to the resourceClaims property in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupSpec for chaining.
-
getSchedulingConstraints
- Returns:
- the schedulingConstraints property value
-
setSchedulingConstraints
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
-
hashCode
-
toString
-