case class Affinity(nodeAffinity: Optional[NodeAffinity] = Optional.Absent, podAffinity: Optional[PodAffinity] = Optional.Absent, podAntiAffinity: Optional[PodAntiAffinity] = Optional.Absent) extends Product with Serializable
Affinity is a group of affinity scheduling rules.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Affinity
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Affinity(nodeAffinity: Optional[NodeAffinity] = Optional.Absent, podAffinity: Optional[PodAffinity] = Optional.Absent, podAntiAffinity: Optional[PodAntiAffinity] = Optional.Absent)
Value Members
-
def
getNodeAffinity: IO[K8sFailure, NodeAffinity]
Gets nodeAffinity.
Gets nodeAffinity.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getPodAffinity: IO[K8sFailure, PodAffinity]
Gets podAffinity.
Gets podAffinity.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getPodAntiAffinity: IO[K8sFailure, PodAntiAffinity]
Gets podAntiAffinity.
Gets podAntiAffinity.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val nodeAffinity: Optional[NodeAffinity]
- val podAffinity: Optional[PodAffinity]
- val podAntiAffinity: Optional[PodAntiAffinity]