Class PodGroupTemplate
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1beta1.PodGroupTemplate
-
- All Implemented Interfaces:
Editable<PodGroupTemplateBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodGroupTemplate extends Object implements Editable<PodGroupTemplateBuilder>, KubernetesResource
PodGroupTemplate represents a template for a set of pods with a scheduling policy.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PodGroupTemplate()No args constructor for use in serializationPodGroupTemplate(DisruptionMode disruptionMode, String name, String preemptionPolicy, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodGroupTemplateBuilderedit()Map<String,Object>getAdditionalProperties()DisruptionModegetDisruptionMode()PodGroupTemplate represents a template for a set of pods with a scheduling policy.StringgetName()name is a unique identifier for the PodGroupTemplate within the Workload.StringgetPreemptionPolicy()preemptionPolicy is the Policy for preempting pods/podgroups with lower priority.IntegergetPriority()priority is the value of priority of pod groups created from this template.StringgetPriorityClassName()priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template.List<PodGroupResourceClaim>getResourceClaims()resourceClaims defines which ResourceClaims may be shared among Pods in the group.PodGroupSchedulingConstraintsgetSchedulingConstraints()PodGroupTemplate represents a template for a set of pods with a scheduling policy.PodGroupSchedulingPolicygetSchedulingPolicy()PodGroupTemplate represents a template for a set of pods with a scheduling policy.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDisruptionMode(DisruptionMode disruptionMode)PodGroupTemplate represents a template for a set of pods with a scheduling policy.voidsetName(String name)name is a unique identifier for the PodGroupTemplate within the Workload.voidsetPreemptionPolicy(String preemptionPolicy)preemptionPolicy is the Policy for preempting pods/podgroups with lower priority.voidsetPriority(Integer priority)priority is the value of priority of pod groups created from this template.voidsetPriorityClassName(String priorityClassName)priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template.voidsetResourceClaims(List<PodGroupResourceClaim> resourceClaims)resourceClaims defines which ResourceClaims may be shared among Pods in the group.voidsetSchedulingConstraints(PodGroupSchedulingConstraints schedulingConstraints)PodGroupTemplate represents a template for a set of pods with a scheduling policy.voidsetSchedulingPolicy(PodGroupSchedulingPolicy schedulingPolicy)PodGroupTemplate represents a template for a set of pods with a scheduling policy.PodGroupTemplateBuildertoBuilder()
-
-
-
Constructor Detail
-
PodGroupTemplate
public PodGroupTemplate()
No args constructor for use in serialization
-
PodGroupTemplate
public PodGroupTemplate(DisruptionMode disruptionMode, String name, String preemptionPolicy, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy)
-
-
Method Detail
-
getDisruptionMode
public DisruptionMode getDisruptionMode()
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
setDisruptionMode
public void setDisruptionMode(DisruptionMode disruptionMode)
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
getName
public String getName()
name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.
-
setName
public void setName(String name)
name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.
-
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 pod groups created from this template. Various system components use this field to find the priority of the pod group. 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 pod groups created from this template. Various system components use this field to find the priority of the pod group. 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 pod group created from this template. This field is immutable.
-
setPriorityClassName
public void setPriorityClassName(String priorityClassName)
priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. 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()
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
setSchedulingConstraints
public void setSchedulingConstraints(PodGroupSchedulingConstraints schedulingConstraints)
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
getSchedulingPolicy
public PodGroupSchedulingPolicy getSchedulingPolicy()
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
setSchedulingPolicy
public void setSchedulingPolicy(PodGroupSchedulingPolicy schedulingPolicy)
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
edit
public PodGroupTemplateBuilder edit()
- Specified by:
editin interfaceEditable<PodGroupTemplateBuilder>
-
toBuilder
public PodGroupTemplateBuilder toBuilder()
-
-