Interface ClusterDrainPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ClusterDrainPolicy.Builder,,ClusterDrainPolicy> SdkBuilder<ClusterDrainPolicy.Builder,,ClusterDrainPolicy> SdkPojo
- Enclosing class:
ClusterDrainPolicy
-
Method Summary
Modifier and TypeMethodDescriptiondrainTimeoutInSeconds(Integer drainTimeoutInSeconds) The maximum time, in seconds, to wait for the pods on an instance to drain.onDrainTimeout(String onDrainTimeout) The action to take if the pods on an instance don't drain withinDrainTimeoutInSeconds.onDrainTimeout(ClusterOnDrainTimeout onDrainTimeout) The action to take if the pods on an instance don't drain withinDrainTimeoutInSeconds.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
drainTimeoutInSeconds
The maximum time, in seconds, to wait for the pods on an instance to drain. Valid values are from 0 to 5400 (90 minutes). The default is 3600 (1 hour).
- Parameters:
drainTimeoutInSeconds- The maximum time, in seconds, to wait for the pods on an instance to drain. Valid values are from 0 to 5400 (90 minutes). The default is 3600 (1 hour).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDrainTimeout
The action to take if the pods on an instance don't drain within
DrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
- Parameters:
onDrainTimeout- The action to take if the pods on an instance don't drain withinDrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
onDrainTimeout
The action to take if the pods on an instance don't drain within
DrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
- Parameters:
onDrainTimeout- The action to take if the pods on an instance don't drain withinDrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-