case class PriorityClass(description: Optional[String] = Optional.Absent, globalDefault: Optional[Boolean] = Optional.Absent, metadata: Optional[ObjectMeta] = Optional.Absent, preemptionPolicy: Optional[String] = Optional.Absent, value: Int) extends Product with Serializable
PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
- description
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
- globalDefault
globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as
globalDefault
. However, if more than one PriorityClasses exists with theirglobalDefault
field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.- preemptionPolicy
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.
- value
The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
- Alphabetic
- By Inheritance
- PriorityClass
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PriorityClass(description: Optional[String] = Optional.Absent, globalDefault: Optional[Boolean] = Optional.Absent, metadata: Optional[ObjectMeta] = Optional.Absent, preemptionPolicy: Optional[String] = Optional.Absent, value: Int)
- description
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
- globalDefault
globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as
globalDefault
. However, if more than one PriorityClasses exists with theirglobalDefault
field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.- preemptionPolicy
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.
- value
The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
Value Members
- val description: Optional[String]
-
def
getDescription: IO[K8sFailure, String]
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getGlobalDefault: IO[K8sFailure, Boolean]
globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.
globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as
globalDefault
. However, if more than one PriorityClasses exists with theirglobalDefault
field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getMetadata: IO[K8sFailure, ObjectMeta]
Gets metadata.
Gets metadata.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getPreemptionPolicy: IO[K8sFailure, String]
PreemptionPolicy is the Policy for preempting pods with lower priority.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getValue: IO[K8sFailure, Int]
The value of this priority class.
The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
This effect always succeeds, it is safe to use the field value directly.
- val globalDefault: Optional[Boolean]
- val metadata: Optional[ObjectMeta]
- val preemptionPolicy: Optional[String]
- val value: Int