Class 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 Detail

      • TaintIdentifier

        public TaintIdentifier()
        No args constructor for use in serialization
      • TaintIdentifier

        public TaintIdentifier​(String effect,
                               String key)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)