Class V1alpha2PodGroupTemplate
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha2PodGroupTemplate
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha2PodGroupTemplate
extends Object
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionV1alpha2PodGroupTemplate(String name, V1alpha2PodGroupSchedulingPolicy schedulingPolicy) -
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.getName()Name is a unique identifier for the PodGroupTemplate within the Workload.Priority is the value of priority of pod groups created from this template.PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template.List<@Valid V1alpha2PodGroupResourceClaim> ResourceClaims defines which ResourceClaims may be shared among Pods in the group.inthashCode()Set name 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 valuevoidSet the name 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_NAME
- See Also:
-
JSON_PROPERTY_SCHEDULING_POLICY
- See Also:
-
JSON_PROPERTY_DISRUPTION_MODE
- 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
-
V1alpha2PodGroupTemplate
-
-
Method Details
-
getName
Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupTemplate for chaining.
-
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 V1alpha2PodGroupTemplate for chaining.
-
getDisruptionMode
DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. 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 V1alpha2PodGroupTemplate for chaining.
-
getPriority
Priority is the value of priority of pod groups created from this template. 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 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 V1alpha2PodGroupTemplate for chaining.
-
getPriorityClassName
PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. 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 V1alpha2PodGroupTemplate 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 V1alpha2PodGroupTemplate resourceClaims(List<@Valid V1alpha2PodGroupResourceClaim> resourceClaims) Set resourceClaims in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupTemplate for chaining.
-
addResourceClaimsItem
public V1alpha2PodGroupTemplate addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) Add an item to the resourceClaims property in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupTemplate for chaining.
-
getSchedulingConstraints
- Returns:
- the schedulingConstraints property value
-
setSchedulingConstraints
Set the schedulingConstraints property value- Parameters:
schedulingConstraints- property value to set
-
schedulingConstraints
public V1alpha2PodGroupTemplate schedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) Set schedulingConstraints in a chainable fashion.- Returns:
- The same instance of V1alpha2PodGroupTemplate for chaining.
-
equals
-
hashCode
-
toString
-