Class PodGroupSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1alpha2.PodGroupSpec
-
- All Implemented Interfaces:
Editable<PodGroupSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodGroupSpec extends Object implements Editable<PodGroupSpecBuilder>, KubernetesResource
PodGroupSpec defines the desired state of a PodGroup.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PodGroupSpec()No args constructor for use in serializationPodGroupSpec(String disruptionMode, PodGroupTemplateReference podGroupTemplateRef, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodGroupSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDisruptionMode()DisruptionMode defines the mode in which a given PodGroup can be disrupted.PodGroupTemplateReferencegetPodGroupTemplateRef()PodGroupSpec defines the desired state of a PodGroup.IntegergetPriority()Priority is the value of priority of this pod group.StringgetPriorityClassName()PriorityClassName defines the priority that should be considered when scheduling this pod group.List<PodGroupResourceClaim>getResourceClaims()ResourceClaims defines which ResourceClaims may be shared among Pods in the group.PodGroupSchedulingConstraintsgetSchedulingConstraints()PodGroupSpec defines the desired state of a PodGroup.PodGroupSchedulingPolicygetSchedulingPolicy()PodGroupSpec defines the desired state of a PodGroup.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDisruptionMode(String disruptionMode)DisruptionMode defines the mode in which a given PodGroup can be disrupted.voidsetPodGroupTemplateRef(PodGroupTemplateReference podGroupTemplateRef)PodGroupSpec defines the desired state of a PodGroup.voidsetPriority(Integer priority)Priority is the value of priority of this pod group.voidsetPriorityClassName(String priorityClassName)PriorityClassName defines the priority that should be considered when scheduling this pod group.voidsetResourceClaims(List<PodGroupResourceClaim> resourceClaims)ResourceClaims defines which ResourceClaims may be shared among Pods in the group.voidsetSchedulingConstraints(PodGroupSchedulingConstraints schedulingConstraints)PodGroupSpec defines the desired state of a PodGroup.voidsetSchedulingPolicy(PodGroupSchedulingPolicy schedulingPolicy)PodGroupSpec defines the desired state of a PodGroup.PodGroupSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
PodGroupSpec
public PodGroupSpec()
No args constructor for use in serialization
-
PodGroupSpec
public PodGroupSpec(String disruptionMode, PodGroupTemplateReference podGroupTemplateRef, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy)
-
-
Method Detail
-
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.
-
setDisruptionMode
public void setDisruptionMode(String disruptionMode)
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.
-
getPodGroupTemplateRef
public PodGroupTemplateReference getPodGroupTemplateRef()
PodGroupSpec defines the desired state of a PodGroup.
-
setPodGroupTemplateRef
public void setPodGroupTemplateRef(PodGroupTemplateReference podGroupTemplateRef)
PodGroupSpec defines the desired state of a PodGroup.
-
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.
-
setPriority
public void setPriority(Integer priority)
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.
-
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.
-
setPriorityClassName
public void setPriorityClassName(String priorityClassName)
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.
-
getResourceClaims
public List<PodGroupResourceClaim> 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.
-
setResourceClaims
public void setResourceClaims(List<PodGroupResourceClaim> resourceClaims)
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.
-
getSchedulingConstraints
public PodGroupSchedulingConstraints getSchedulingConstraints()
PodGroupSpec defines the desired state of a PodGroup.
-
setSchedulingConstraints
public void setSchedulingConstraints(PodGroupSchedulingConstraints schedulingConstraints)
PodGroupSpec defines the desired state of a PodGroup.
-
getSchedulingPolicy
public PodGroupSchedulingPolicy getSchedulingPolicy()
PodGroupSpec defines the desired state of a PodGroup.
-
setSchedulingPolicy
public void setSchedulingPolicy(PodGroupSchedulingPolicy schedulingPolicy)
PodGroupSpec defines the desired state of a PodGroup.
-
edit
public PodGroupSpecBuilder edit()
- Specified by:
editin interfaceEditable<PodGroupSpecBuilder>
-
toBuilder
public PodGroupSpecBuilder toBuilder()
-
-