Class PodGroupSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1alpha3.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(DisruptionMode disruptionMode, String parentCompositePodGroupName, String preemptionPolicy, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy, WorkloadReference workloadRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodGroupSpecBuilderedit()Map<String,Object>getAdditionalProperties()DisruptionModegetDisruptionMode()PodGroupSpec defines the desired state of a PodGroup.StringgetParentCompositePodGroupName()parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group.StringgetPreemptionPolicy()preemptionPolicy is the Policy for preempting pods/podgroups with lower priority.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.WorkloadReferencegetWorkloadRef()PodGroupSpec defines the desired state of a PodGroup.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDisruptionMode(DisruptionMode disruptionMode)PodGroupSpec defines the desired state of a PodGroup.voidsetParentCompositePodGroupName(String parentCompositePodGroupName)parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group.voidsetPreemptionPolicy(String preemptionPolicy)preemptionPolicy is the Policy for preempting pods/podgroups with lower priority.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.voidsetWorkloadRef(WorkloadReference workloadRef)PodGroupSpec defines the desired state of a PodGroup.PodGroupSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
PodGroupSpec
public PodGroupSpec()
No args constructor for use in serialization
-
PodGroupSpec
public PodGroupSpec(DisruptionMode disruptionMode, String parentCompositePodGroupName, String preemptionPolicy, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy, WorkloadReference workloadRef)
-
-
Method Detail
-
getDisruptionMode
public DisruptionMode getDisruptionMode()
PodGroupSpec defines the desired state of a PodGroup.
-
setDisruptionMode
public void setDisruptionMode(DisruptionMode disruptionMode)
PodGroupSpec defines the desired state of a PodGroup.
-
getParentCompositePodGroupName
public String getParentCompositePodGroupName()
parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.
-
setParentCompositePodGroupName
public void setParentCompositePodGroupName(String parentCompositePodGroupName)
parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.
-
getPreemptionPolicy
public String getPreemptionPolicy()
preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.
-
setPreemptionPolicy
public void setPreemptionPolicy(String preemptionPolicy)
preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.
-
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.
-
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.
-
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.
-
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.
-
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 a beta-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 a beta-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.
-
getWorkloadRef
public WorkloadReference getWorkloadRef()
PodGroupSpec defines the desired state of a PodGroup.
-
setWorkloadRef
public void setWorkloadRef(WorkloadReference workloadRef)
PodGroupSpec defines the desired state of a PodGroup.
-
edit
public PodGroupSpecBuilder edit()
- Specified by:
editin interfaceEditable<PodGroupSpecBuilder>
-
toBuilder
public PodGroupSpecBuilder toBuilder()
-
-