Class PodGroupSpec

    • Method Detail

      • getDisruptionMode

        public String getDisruptionMode()
        DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      • setDisruptionMode

        public void setDisruptionMode​(String disruptionMode)
        DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      • getPodGroupTemplateRef

        public PodGroupTemplateReference getPodGroupTemplateRef()
        PodGroupSpec defines the desired state of a PodGroup.
      • setPodGroupTemplateRef

        public void setPodGroupTemplateRef​(PodGroupTemplateReference podGroupTemplateRef)
        PodGroupSpec defines the desired state of a PodGroup.
      • getPriority

        public Integer getPriority()
        Priority is the value of priority of this pod group. Various system components use this field to find the priority of the 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. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      • setPriority

        public void setPriority​(Integer priority)
        Priority is the value of priority of this pod group. Various system components use this field to find the priority of the 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. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      • getPriorityClassName

        public String getPriorityClassName()
        PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      • setPriorityClassName

        public void setPriorityClassName​(String priorityClassName)
        PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      • 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 an alpha-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 an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.


        This field is immutable.

      • getSchedulingConstraints

        public PodGroupSchedulingConstraints getSchedulingConstraints()
        PodGroupSpec defines the desired state of a PodGroup.
      • setSchedulingConstraints

        public void setSchedulingConstraints​(PodGroupSchedulingConstraints schedulingConstraints)
        PodGroupSpec defines the desired state of a PodGroup.
      • getSchedulingPolicy

        public PodGroupSchedulingPolicy getSchedulingPolicy()
        PodGroupSpec defines the desired state of a PodGroup.
      • setSchedulingPolicy

        public void setSchedulingPolicy​(PodGroupSchedulingPolicy schedulingPolicy)
        PodGroupSpec defines the desired state of a PodGroup.
      • getAdditionalProperties

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

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

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