Package org.cdk8s.plus24
Enum TaintEffect
- java.lang.Object
-
- java.lang.Enum<TaintEffect>
-
- org.cdk8s.plus24.TaintEffect
-
- All Implemented Interfaces:
Serializable
,Comparable<TaintEffect>
@Generated(value="jsii-pacmak/1.79.0 (build b22f628)", date="2023-03-31T02:28:41.703Z") @Stability(Stable) public enum TaintEffect extends Enum<TaintEffect>
Taint effects.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_EXECUTE
This affects pods that are already running on the node as follows:.NO_SCHEDULE
This means that no pod will be able to schedule onto the node unless it has a matching toleration.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaintEffect
valueOf(String name)
Returns the enum constant of this type with the specified name.static TaintEffect[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
-