Class CompositePodGroupTemplate

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

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

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

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