Class Toleration.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.Toleration.Builder
-
- Enclosing class:
- Toleration
public static class Toleration.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Toleration
build()
Toleration.Builder
effect(java.lang.String effect)
Effect indicates the taint effect to match.Toleration.Builder
key(java.lang.String key)
Key is the taint key that the toleration applies to.Toleration.Builder
operator(java.lang.String operator)
Operator represents a key's relationship to the value.Toleration.Builder
tolerationSeconds(java.lang.Number tolerationSeconds)
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.java.lang.String
toString()
Toleration.Builder
value(java.lang.String value)
Value is the taint value the toleration matches to.
-
-
-
Method Detail
-
effect
public Toleration.Builder effect(java.lang.String effect)
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.- Returns:
this
.
-
key
public Toleration.Builder key(java.lang.String key)
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.- Returns:
this
.
-
operator
public Toleration.Builder operator(java.lang.String operator)
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.- Returns:
this
.
-
tolerationSeconds
public Toleration.Builder tolerationSeconds(java.lang.Number tolerationSeconds)
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.- Returns:
this
.
-
value
public Toleration.Builder value(java.lang.String value)
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.- Returns:
this
.
-
build
public Toleration build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-