Class TaintIdentifier
- java.lang.Object
-
- io.fabric8.openshift.api.model.hive.v1.TaintIdentifier
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<TaintIdentifierBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TaintIdentifier extends Object implements io.fabric8.kubernetes.api.builder.Editable<TaintIdentifierBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
TaintIdentifier uniquely identifies a Taint. (It turns out taints are mutually exclusive by key+effect, not simply by key.)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaintIdentifier()No args constructor for use in serializationTaintIdentifier(String effect, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaintIdentifierBuilderedit()Map<String,Object>getAdditionalProperties()StringgetEffect()Effect matches corev1.Taint.Effect.StringgetKey()Key matches corev1.Taint.Key.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetEffect(String effect)Effect matches corev1.Taint.Effect.voidsetKey(String key)Key matches corev1.Taint.Key.TaintIdentifierBuildertoBuilder()
-
-
-
Method Detail
-
getEffect
public String getEffect()
Effect matches corev1.Taint.Effect.Possible enum values:
- `"NoExecute"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.
- `"NoSchedule"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.
- `"PreferNoSchedule"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.
-
setEffect
public void setEffect(String effect)
Effect matches corev1.Taint.Effect.Possible enum values:
- `"NoExecute"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.
- `"NoSchedule"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.
- `"PreferNoSchedule"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.
-
getKey
public String getKey()
Key matches corev1.Taint.Key.
-
setKey
public void setKey(String key)
Key matches corev1.Taint.Key.
-
edit
public TaintIdentifierBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<TaintIdentifierBuilder>
-
toBuilder
public TaintIdentifierBuilder toBuilder()
-
-