final case class PodAffinityTerm(topologyKey: String, labelSelector: Option[LabelSelector] = None, namespaceSelector: Option[LabelSelector] = None, namespaces: Option[Seq[String]] = None) extends Product with Serializable
Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
- Source
- PodAffinityTerm.scala
- Alphabetic
- By Inheritance
- PodAffinityTerm
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PodAffinityTerm(topologyKey: String, labelSelector: Option[LabelSelector] = None, namespaceSelector: Option[LabelSelector] = None, namespaces: Option[Seq[String]] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addNamespaces(newValues: String*): PodAffinityTerm
Appends new values to namespaces
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labelSelector: Option[LabelSelector]
-
def
mapLabelSelector(f: (LabelSelector) ⇒ LabelSelector): PodAffinityTerm
if labelSelector has a value, transforms to the result of function
-
def
mapNamespaceSelector(f: (LabelSelector) ⇒ LabelSelector): PodAffinityTerm
if namespaceSelector has a value, transforms to the result of function
-
def
mapNamespaces(f: (Seq[String]) ⇒ Seq[String]): PodAffinityTerm
if namespaces has a value, transforms to the result of function
-
def
mapTopologyKey(f: (String) ⇒ String): PodAffinityTerm
transforms topologyKey to result of function
- val namespaceSelector: Option[LabelSelector]
- val namespaces: Option[Seq[String]]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val topologyKey: String
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withLabelSelector(value: LabelSelector): PodAffinityTerm
Returns a new data with labelSelector set to new value
-
def
withNamespaceSelector(value: LabelSelector): PodAffinityTerm
Returns a new data with namespaceSelector set to new value
-
def
withNamespaces(value: Seq[String]): PodAffinityTerm
Returns a new data with namespaces set to new value
-
def
withTopologyKey(value: String): PodAffinityTerm
Returns a new data with topologyKey set to new value