Package org.cdk8s.plus23
Class StatefulSetUpdateStrategyRollingUpdateOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus23.StatefulSetUpdateStrategyRollingUpdateOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StatefulSetUpdateStrategyRollingUpdateOptions>
- Enclosing interface:
- StatefulSetUpdateStrategyRollingUpdateOptions
@Stability(Stable) public static final class StatefulSetUpdateStrategyRollingUpdateOptions.Builder extends Object implements software.amazon.jsii.Builder<StatefulSetUpdateStrategyRollingUpdateOptions>
A builder forStatefulSetUpdateStrategyRollingUpdateOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatefulSetUpdateStrategyRollingUpdateOptions
build()
Builds the configured instance.StatefulSetUpdateStrategyRollingUpdateOptions.Builder
partition(Number partition)
Sets the value ofStatefulSetUpdateStrategyRollingUpdateOptions.getPartition()
-
-
-
Method Detail
-
partition
@Stability(Stable) public StatefulSetUpdateStrategyRollingUpdateOptions.Builder partition(Number partition)
Sets the value ofStatefulSetUpdateStrategyRollingUpdateOptions.getPartition()
- Parameters:
partition
- If specified, all Pods with an ordinal that is greater than or equal to the partition will be updated when the StatefulSet's .spec.template is updated. All Pods with an ordinal that is less than the partition will not be updated, and, even if they are deleted, they will be recreated at the previous version. If the partition is greater than replicas, updates to the pod template will not be propagated to Pods. In most cases you will not need to use a partition, but they are useful if you want to stage an update, roll out a canary, or perform a phased roll out.- Returns:
this
-
build
@Stability(Stable) public StatefulSetUpdateStrategyRollingUpdateOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StatefulSetUpdateStrategyRollingUpdateOptions>
- Returns:
- a new instance of
StatefulSetUpdateStrategyRollingUpdateOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-