Class V1alpha2PodGroupTemplate
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1alpha2PodGroupTemplate
extends Object
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) disruptionMode(String disruptionMode) booleanstatic V1alpha2PodGroupTemplateCreate an instance of V1alpha2PodGroupTemplate given an JSON stringDisruptionMode 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.ResourceClaims defines which ResourceClaims may be shared among Pods in the group.Get schedulingConstraintsGet schedulingPolicyinthashCode()priorityClassName(String priorityClassName) resourceClaims(List<V1alpha2PodGroupResourceClaim> resourceClaims) schedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) schedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) voidsetDisruptionMode(String disruptionMode) voidvoidsetPriority(Integer priority) voidsetPriorityClassName(String priorityClassName) voidsetResourceClaims(List<V1alpha2PodGroupResourceClaim> resourceClaims) voidsetSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) voidsetSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) toJson()Convert an instance of V1alpha2PodGroupTemplate to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DISRUPTION_MODE
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PRIORITY
- See Also:
-
SERIALIZED_NAME_PRIORITY_CLASS_NAME
- See Also:
-
SERIALIZED_NAME_RESOURCE_CLAIMS
- See Also:
-
SERIALIZED_NAME_SCHEDULING_CONSTRAINTS
- See Also:
-
SERIALIZED_NAME_SCHEDULING_POLICY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2PodGroupTemplate
public V1alpha2PodGroupTemplate()
-
-
Method Details
-
disruptionMode
-
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:
- disruptionMode
-
setDisruptionMode
-
name
-
getName
Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.- Returns:
- name
-
setName
-
priority
-
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:
- priority
-
setPriority
-
priorityClassName
-
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:
- priorityClassName
-
setPriorityClassName
-
resourceClaims
public V1alpha2PodGroupTemplate resourceClaims(@Nullable List<V1alpha2PodGroupResourceClaim> resourceClaims) -
addResourceClaimsItem
public V1alpha2PodGroupTemplate addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) -
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:
- resourceClaims
-
setResourceClaims
-
schedulingConstraints
public V1alpha2PodGroupTemplate schedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) -
getSchedulingConstraints
Get schedulingConstraints- Returns:
- schedulingConstraints
-
setSchedulingConstraints
public void setSchedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) -
schedulingPolicy
public V1alpha2PodGroupTemplate schedulingPolicy(@Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) -
getSchedulingPolicy
Get schedulingPolicy- Returns:
- schedulingPolicy
-
setSchedulingPolicy
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V1alpha2PodGroupTemplate
-
fromJson
Create an instance of V1alpha2PodGroupTemplate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1alpha2PodGroupTemplate
- Throws:
IOException- if the JSON string is invalid with respect to V1alpha2PodGroupTemplate
-
toJson
Convert an instance of V1alpha2PodGroupTemplate to an JSON string- Returns:
- JSON string
-