Enum TaintEffect

    • Enum Constant Detail

      • NO_SCHEDULE

        @Stability(Stable)
        public static final TaintEffect NO_SCHEDULE
        This means that no pod will be able to schedule onto the node unless it has a matching toleration.
      • PREFER_NO_SCHEDULE

        @Stability(Stable)
        public static final TaintEffect PREFER_NO_SCHEDULE
        This is a "preference" or "soft" version of `NO_SCHEDULE` -- the system will try to avoid placing a pod that does not tolerate the taint on the node, but it is not required.
      • NO_EXECUTE

        @Stability(Stable)
        public static final TaintEffect NO_EXECUTE
        This affects pods that are already running on the node as follows:.

        • Pods that do not tolerate the taint are evicted immediately.
        • Pods that tolerate the taint without specifying duration remain bound forever.
        • Pods that tolerate the taint with a specified duration remain bound for the specified amount of time.
    • Method Detail

      • values

        public static TaintEffect[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TaintEffect c : TaintEffect.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TaintEffect valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null