Class V1alpha2PodGroupSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2PodGroupSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1alpha2PodGroupSpec
extends Object
PodGroupSpec defines the desired state of a PodGroup.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) disruptionMode(String disruptionMode) booleanstatic V1alpha2PodGroupSpecCreate an instance of V1alpha2PodGroupSpec given an JSON stringDisruptionMode defines the mode in which a given PodGroup can be disrupted.Get podGroupTemplateRefPriority is the value of priority of this pod group.PriorityClassName defines the priority that should be considered when scheduling this pod group.ResourceClaims defines which ResourceClaims may be shared among Pods in the group.Get schedulingConstraintsGet schedulingPolicyinthashCode()podGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef) priorityClassName(String priorityClassName) resourceClaims(List<V1alpha2PodGroupResourceClaim> resourceClaims) schedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) schedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) voidsetDisruptionMode(String disruptionMode) voidsetPodGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef) voidsetPriority(Integer priority) voidsetPriorityClassName(String priorityClassName) voidsetResourceClaims(List<V1alpha2PodGroupResourceClaim> resourceClaims) voidsetSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) voidsetSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) toJson()Convert an instance of V1alpha2PodGroupSpec 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_POD_GROUP_TEMPLATE_REF
- 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
-
V1alpha2PodGroupSpec
public V1alpha2PodGroupSpec()
-
-
Method Details
-
disruptionMode
-
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:
- disruptionMode
-
setDisruptionMode
-
podGroupTemplateRef
public V1alpha2PodGroupSpec podGroupTemplateRef(@Nullable V1alpha2PodGroupTemplateReference podGroupTemplateRef) -
getPodGroupTemplateRef
Get podGroupTemplateRef- Returns:
- podGroupTemplateRef
-
setPodGroupTemplateRef
-
priority
-
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:
- priority
-
setPriority
-
priorityClassName
-
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:
- priorityClassName
-
setPriorityClassName
-
resourceClaims
public V1alpha2PodGroupSpec resourceClaims(@Nullable List<V1alpha2PodGroupResourceClaim> resourceClaims) -
addResourceClaimsItem
-
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 V1alpha2PodGroupSpec schedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) -
getSchedulingConstraints
Get schedulingConstraints- Returns:
- schedulingConstraints
-
setSchedulingConstraints
public void setSchedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) -
schedulingPolicy
public V1alpha2PodGroupSpec 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 V1alpha2PodGroupSpec
-
fromJson
Create an instance of V1alpha2PodGroupSpec given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1alpha2PodGroupSpec
- Throws:
IOException- if the JSON string is invalid with respect to V1alpha2PodGroupSpec
-
toJson
Convert an instance of V1alpha2PodGroupSpec to an JSON string- Returns:
- JSON string
-