Class V1RollingUpdateStatefulSetStrategy
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1RollingUpdateStatefulSetStrategy
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1RollingUpdateStatefulSetStrategy
extends Object
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
IntOrString is a type that can hold an int32 or a string.Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.int
hashCode()
maxUnavailable
(String maxUnavailable) Set maxUnavailable in a chainable fashion.Set partition in a chainable fashion.void
setMaxUnavailable
(String maxUnavailable) Set the maxUnavailable property valuevoid
setPartition
(Integer partition) Set the partition property valuetoString()
-
Field Details
-
JSON_PROPERTY_MAX_UNAVAILABLE
- See Also:
-
JSON_PROPERTY_PARTITION
- See Also:
-
-
Constructor Details
-
V1RollingUpdateStatefulSetStrategy
public V1RollingUpdateStatefulSetStrategy()
-
-
Method Details
-
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.- Returns:
- the partition property value
-
setPartition
Set the partition property value- Parameters:
partition
- property value to set
-
partition
Set partition in a chainable fashion.- Returns:
- The same instance of V1RollingUpdateStatefulSetStrategy for chaining.
-
equals
-
hashCode
public int hashCode() -
toString