PodAffinityTerm

io.k8s.api.core.v1.PodAffinityTerm
See thePodAffinityTerm companion object
final case class PodAffinityTerm(topologyKey: String, matchLabelKeys: Option[Seq[String]], labelSelector: Option[LabelSelector], namespaceSelector: Option[LabelSelector], mismatchLabelKeys: Option[Seq[String]], namespaces: Option[Seq[String]])

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

Attributes

Companion
object
Source
PodAffinityTerm.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addMatchLabelKeys(newValues: String*): PodAffinityTerm

Appends new values to matchLabelKeys

Appends new values to matchLabelKeys

Attributes

Source
PodAffinityTerm.scala
def addMismatchLabelKeys(newValues: String*): PodAffinityTerm

Appends new values to mismatchLabelKeys

Appends new values to mismatchLabelKeys

Attributes

Source
PodAffinityTerm.scala
def addNamespaces(newValues: String*): PodAffinityTerm

Appends new values to namespaces

Appends new values to namespaces

Attributes

Source
PodAffinityTerm.scala

if labelSelector has a value, transforms to the result of function

if labelSelector has a value, transforms to the result of function

Attributes

Source
PodAffinityTerm.scala
def mapMatchLabelKeys(f: Seq[String] => Seq[String]): PodAffinityTerm

if matchLabelKeys has a value, transforms to the result of function

if matchLabelKeys has a value, transforms to the result of function

Attributes

Source
PodAffinityTerm.scala
def mapMismatchLabelKeys(f: Seq[String] => Seq[String]): PodAffinityTerm

if mismatchLabelKeys has a value, transforms to the result of function

if mismatchLabelKeys has a value, transforms to the result of function

Attributes

Source
PodAffinityTerm.scala

if namespaceSelector has a value, transforms to the result of function

if namespaceSelector has a value, transforms to the result of function

Attributes

Source
PodAffinityTerm.scala
def mapNamespaces(f: Seq[String] => Seq[String]): PodAffinityTerm

if namespaces has a value, transforms to the result of function

if namespaces has a value, transforms to the result of function

Attributes

Source
PodAffinityTerm.scala
def mapTopologyKey(f: String => String): PodAffinityTerm

transforms topologyKey to result of function

transforms topologyKey to result of function

Attributes

Source
PodAffinityTerm.scala

Returns a new data with labelSelector set to new value

Returns a new data with labelSelector set to new value

Attributes

Source
PodAffinityTerm.scala
def withMatchLabelKeys(value: Seq[String]): PodAffinityTerm

Returns a new data with matchLabelKeys set to new value

Returns a new data with matchLabelKeys set to new value

Attributes

Source
PodAffinityTerm.scala
def withMismatchLabelKeys(value: Seq[String]): PodAffinityTerm

Returns a new data with mismatchLabelKeys set to new value

Returns a new data with mismatchLabelKeys set to new value

Attributes

Source
PodAffinityTerm.scala

Returns a new data with namespaceSelector set to new value

Returns a new data with namespaceSelector set to new value

Attributes

Source
PodAffinityTerm.scala
def withNamespaces(value: Seq[String]): PodAffinityTerm

Returns a new data with namespaces set to new value

Returns a new data with namespaces set to new value

Attributes

Source
PodAffinityTerm.scala
def withTopologyKey(value: String): PodAffinityTerm

Returns a new data with topologyKey set to new value

Returns a new data with topologyKey set to new value

Attributes

Source
PodAffinityTerm.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product