Class CompositePodGroupSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1alpha3.CompositePodGroupSpec
-
- All Implemented Interfaces:
Editable<CompositePodGroupSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CompositePodGroupSpec extends Object implements Editable<CompositePodGroupSpecBuilder>, KubernetesResource
CompositePodGroupSpec defines the desired state of CompositePodGroup.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositePodGroupSpec()No args constructor for use in serializationCompositePodGroupSpec(CompositeDisruptionMode disruptionMode, String parentCompositePodGroupName, String preemptionPolicy, Integer priority, String priorityClassName, CompositePodGroupSchedulingConstraints schedulingConstraints, CompositePodGroupSchedulingPolicy schedulingPolicy, WorkloadReference workloadRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositePodGroupSpecBuilderedit()Map<String,Object>getAdditionalProperties()CompositeDisruptionModegetDisruptionMode()CompositePodGroupSpec defines the desired state of CompositePodGroup.StringgetParentCompositePodGroupName()parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group.StringgetPreemptionPolicy()preemptionPolicy is the Policy for preempting pods/podgroups with lower priority.IntegergetPriority()priority is the value of priority of this composite pod group.StringgetPriorityClassName()priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup.CompositePodGroupSchedulingConstraintsgetSchedulingConstraints()CompositePodGroupSpec defines the desired state of CompositePodGroup.CompositePodGroupSchedulingPolicygetSchedulingPolicy()CompositePodGroupSpec defines the desired state of CompositePodGroup.WorkloadReferencegetWorkloadRef()CompositePodGroupSpec defines the desired state of CompositePodGroup.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDisruptionMode(CompositeDisruptionMode disruptionMode)CompositePodGroupSpec defines the desired state of CompositePodGroup.voidsetParentCompositePodGroupName(String parentCompositePodGroupName)parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite 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 composite pod group.voidsetPriorityClassName(String priorityClassName)priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup.voidsetSchedulingConstraints(CompositePodGroupSchedulingConstraints schedulingConstraints)CompositePodGroupSpec defines the desired state of CompositePodGroup.voidsetSchedulingPolicy(CompositePodGroupSchedulingPolicy schedulingPolicy)CompositePodGroupSpec defines the desired state of CompositePodGroup.voidsetWorkloadRef(WorkloadReference workloadRef)CompositePodGroupSpec defines the desired state of CompositePodGroup.CompositePodGroupSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
CompositePodGroupSpec
public CompositePodGroupSpec()
No args constructor for use in serialization
-
CompositePodGroupSpec
public CompositePodGroupSpec(CompositeDisruptionMode disruptionMode, String parentCompositePodGroupName, String preemptionPolicy, Integer priority, String priorityClassName, CompositePodGroupSchedulingConstraints schedulingConstraints, CompositePodGroupSchedulingPolicy schedulingPolicy, WorkloadReference workloadRef)
-
-
Method Detail
-
getDisruptionMode
public CompositeDisruptionMode getDisruptionMode()
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
setDisruptionMode
public void setDisruptionMode(CompositeDisruptionMode disruptionMode)
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
getParentCompositePodGroupName
public String getParentCompositePodGroupName()
parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. 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 composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. 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 composite pod group. Various system components use this field to find the priority of the composite 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 composite pod group. Various system components use this field to find the priority of the composite 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 CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite 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 CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.
-
getSchedulingConstraints
public CompositePodGroupSchedulingConstraints getSchedulingConstraints()
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
setSchedulingConstraints
public void setSchedulingConstraints(CompositePodGroupSchedulingConstraints schedulingConstraints)
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
getSchedulingPolicy
public CompositePodGroupSchedulingPolicy getSchedulingPolicy()
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
setSchedulingPolicy
public void setSchedulingPolicy(CompositePodGroupSchedulingPolicy schedulingPolicy)
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
getWorkloadRef
public WorkloadReference getWorkloadRef()
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
setWorkloadRef
public void setWorkloadRef(WorkloadReference workloadRef)
CompositePodGroupSpec defines the desired state of CompositePodGroup.
-
edit
public CompositePodGroupSpecBuilder edit()
- Specified by:
editin interfaceEditable<CompositePodGroupSpecBuilder>
-
toBuilder
public CompositePodGroupSpecBuilder toBuilder()
-
-