Class UndrainableNodeBehavior
java.lang.Object
com.azure.core.util.ExpandableStringEnum<UndrainableNodeBehavior>
com.azure.resourcemanager.containerservice.models.UndrainableNodeBehavior
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class UndrainableNodeBehavior
extends com.azure.core.util.ExpandableStringEnum<UndrainableNodeBehavior>
Defines the behavior for undrainable nodes during upgrade. The most common cause of undrainable nodes is Pod
Disruption Budgets (PDBs), but other issues, such as pod termination grace period is exceeding the remaining per-node
drain timeout or pod is still being in a running state, can also cause undrainable nodes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UndrainableNodeBehaviorStatic value Cordon for UndrainableNodeBehavior.static final UndrainableNodeBehaviorStatic value Schedule for UndrainableNodeBehavior. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UndrainableNodeBehaviorfromString(String name) Creates or finds a UndrainableNodeBehavior from its string representation.static Collection<UndrainableNodeBehavior> values()Gets known UndrainableNodeBehavior values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
CORDON
Static value Cordon for UndrainableNodeBehavior. -
SCHEDULE
Static value Schedule for UndrainableNodeBehavior.
-
-
Constructor Details
-
UndrainableNodeBehavior
Deprecated.Use thefromString(String)factory method.Creates a new instance of UndrainableNodeBehavior value.
-
-
Method Details
-
fromString
Creates or finds a UndrainableNodeBehavior from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding UndrainableNodeBehavior.
-
values
Gets known UndrainableNodeBehavior values.- Returns:
- known UndrainableNodeBehavior values.
-
fromString(String)factory method.