final case class LabelSelector(matchExpressions: Option[Seq[LabelSelectorRequirement]] = None, matchLabels: Option[Map[String, String]] = None) extends Product with Serializable
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- Source
- LabelSelector.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LabelSelector
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new LabelSelector(matchExpressions: Option[Seq[LabelSelectorRequirement]] = None, matchLabels: Option[Map[String, 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
addMatchExpressions(newValues: LabelSelectorRequirement*): LabelSelector
Appends new values to matchExpressions
-
def
addMatchLabels(newValues: (String, String)*): LabelSelector
Adds new values to matchLabels
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapMatchExpressions(f: (Seq[LabelSelectorRequirement]) ⇒ Seq[LabelSelectorRequirement]): LabelSelector
if matchExpressions has a value, transforms to the result of function
-
def
mapMatchLabels(f: (Map[String, String]) ⇒ Map[String, String]): LabelSelector
if matchLabels has a value, transforms to the result of function
- val matchExpressions: Option[Seq[LabelSelectorRequirement]]
- val matchLabels: Option[Map[String, String]]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()
-
def
withMatchExpressions(value: Seq[LabelSelectorRequirement]): LabelSelector
Returns a new data with matchExpressions set to new value
-
def
withMatchLabels(value: Map[String, String]): LabelSelector
Returns a new data with matchLabels set to new value