Class RollingUpdateStatefulSetStrategy
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.apps.RollingUpdateStatefulSetStrategy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RollingUpdateStatefulSetStrategyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RollingUpdateStatefulSetStrategy extends Object implements io.fabric8.kubernetes.api.builder.Editable<RollingUpdateStatefulSetStrategyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RollingUpdateStatefulSetStrategy()No args constructor for use in serializationRollingUpdateStatefulSetStrategy(io.fabric8.kubernetes.api.model.IntOrString maxUnavailable, Integer partition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RollingUpdateStatefulSetStrategyBuilderedit()Map<String,Object>getAdditionalProperties()io.fabric8.kubernetes.api.model.IntOrStringgetMaxUnavailable()RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.IntegergetPartition()Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMaxUnavailable(io.fabric8.kubernetes.api.model.IntOrString maxUnavailable)RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.voidsetPartition(Integer partition)Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.RollingUpdateStatefulSetStrategyBuildertoBuilder()
-
-
-
Constructor Detail
-
RollingUpdateStatefulSetStrategy
public RollingUpdateStatefulSetStrategy()
No args constructor for use in serialization
-
RollingUpdateStatefulSetStrategy
public RollingUpdateStatefulSetStrategy(io.fabric8.kubernetes.api.model.IntOrString maxUnavailable, Integer partition)
-
-
Method Detail
-
getMaxUnavailable
public io.fabric8.kubernetes.api.model.IntOrString getMaxUnavailable()
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
-
setMaxUnavailable
public void setMaxUnavailable(io.fabric8.kubernetes.api.model.IntOrString maxUnavailable)
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
-
getPartition
public Integer getPartition()
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.
-
setPartition
public void setPartition(Integer partition)
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.
-
edit
public RollingUpdateStatefulSetStrategyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RollingUpdateStatefulSetStrategyBuilder>
-
toBuilder
public RollingUpdateStatefulSetStrategyBuilder toBuilder()
-
-