Class PodGroupTemplate

    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)