Class CompositePodGroupTemplate
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1beta1.CompositePodGroupTemplate
-
- All Implemented Interfaces:
Editable<CompositePodGroupTemplateBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CompositePodGroupTemplate extends Object implements Editable<CompositePodGroupTemplateBuilder>, KubernetesResource
CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositePodGroupTemplate()No args constructor for use in serializationCompositePodGroupTemplate(List<CompositePodGroupTemplate> compositePodGroupTemplates, CompositeDisruptionMode disruptionMode, String name, List<PodGroupTemplate> podGroupTemplates, String preemptionPolicy, Integer priority, String priorityClassName, CompositePodGroupSchedulingConstraints schedulingConstraints, CompositePodGroupSchedulingPolicy schedulingPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositePodGroupTemplateBuilderedit()Map<String,Object>getAdditionalProperties()List<CompositePodGroupTemplate>getCompositePodGroupTemplates()compositePodGroupTemplates is the list of templates for children CompositePodGroups.CompositeDisruptionModegetDisruptionMode()CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.StringgetName()name is a unique identifier for the CompositePodGroupTemplate within the Workload.List<PodGroupTemplate>getPodGroupTemplates()podGroupTemplates is the list of templates for children PodGroups.StringgetPreemptionPolicy()preemptionPolicy is the Policy for preempting pods/podgroups with lower priority.IntegergetPriority()priority is the value of priority of composite pod groups created from this template.StringgetPriorityClassName()priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template.CompositePodGroupSchedulingConstraintsgetSchedulingConstraints()CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.CompositePodGroupSchedulingPolicygetSchedulingPolicy()CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCompositePodGroupTemplates(List<CompositePodGroupTemplate> compositePodGroupTemplates)compositePodGroupTemplates is the list of templates for children CompositePodGroups.voidsetDisruptionMode(CompositeDisruptionMode disruptionMode)CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.voidsetName(String name)name is a unique identifier for the CompositePodGroupTemplate within the Workload.voidsetPodGroupTemplates(List<PodGroupTemplate> podGroupTemplates)podGroupTemplates is the list of templates for children PodGroups.voidsetPreemptionPolicy(String preemptionPolicy)preemptionPolicy is the Policy for preempting pods/podgroups with lower priority.voidsetPriority(Integer priority)priority is the value of priority of composite pod groups created from this template.voidsetPriorityClassName(String priorityClassName)priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template.voidsetSchedulingConstraints(CompositePodGroupSchedulingConstraints schedulingConstraints)CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.voidsetSchedulingPolicy(CompositePodGroupSchedulingPolicy schedulingPolicy)CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.CompositePodGroupTemplateBuildertoBuilder()
-
-
-
Constructor Detail
-
CompositePodGroupTemplate
public CompositePodGroupTemplate()
No args constructor for use in serialization
-
CompositePodGroupTemplate
public CompositePodGroupTemplate(List<CompositePodGroupTemplate> compositePodGroupTemplates, CompositeDisruptionMode disruptionMode, String name, List<PodGroupTemplate> podGroupTemplates, String preemptionPolicy, Integer priority, String priorityClassName, CompositePodGroupSchedulingConstraints schedulingConstraints, CompositePodGroupSchedulingPolicy schedulingPolicy)
-
-
Method Detail
-
getCompositePodGroupTemplates
public List<CompositePodGroupTemplate> getCompositePodGroupTemplates()
compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.
-
setCompositePodGroupTemplates
public void setCompositePodGroupTemplates(List<CompositePodGroupTemplate> compositePodGroupTemplates)
compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.
-
getDisruptionMode
public CompositeDisruptionMode getDisruptionMode()
CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.
-
setDisruptionMode
public void setDisruptionMode(CompositeDisruptionMode disruptionMode)
CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.
-
getName
public String getName()
name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.
-
setName
public void setName(String name)
name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.
-
getPodGroupTemplates
public List<PodGroupTemplate> getPodGroupTemplates()
podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.
-
setPodGroupTemplates
public void setPodGroupTemplates(List<PodGroupTemplate> podGroupTemplates)
podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.
-
getPreemptionPolicy
public String getPreemptionPolicy()
preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. 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. 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 composite pod groups created from this template. 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 composite pod groups created from this template. 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 indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.
-
setPriorityClassName
public void setPriorityClassName(String priorityClassName)
priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.
-
getSchedulingConstraints
public CompositePodGroupSchedulingConstraints getSchedulingConstraints()
CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.
-
setSchedulingConstraints
public void setSchedulingConstraints(CompositePodGroupSchedulingConstraints schedulingConstraints)
CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.
-
getSchedulingPolicy
public CompositePodGroupSchedulingPolicy getSchedulingPolicy()
CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.
-
setSchedulingPolicy
public void setSchedulingPolicy(CompositePodGroupSchedulingPolicy schedulingPolicy)
CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.
-
edit
public CompositePodGroupTemplateBuilder edit()
- Specified by:
editin interfaceEditable<CompositePodGroupTemplateBuilder>
-
toBuilder
public CompositePodGroupTemplateBuilder toBuilder()
-
-