Class RollingUpdateStatefulSetStrategy
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class RollingUpdateStatefulSetStrategy extends java.lang.Object implements com.marcnuri.yakc.model.Model
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RollingUpdateStatefulSetStrategy.Builder
-
Constructor Summary
Constructors Constructor Description RollingUpdateStatefulSetStrategy()
RollingUpdateStatefulSetStrategy(java.lang.String maxUnavailable, java.lang.Number partition)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RollingUpdateStatefulSetStrategy.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getMaxUnavailable()
java.lang.Number
getPartition()
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.int
hashCode()
void
setMaxUnavailable(java.lang.String maxUnavailable)
void
setPartition(java.lang.Number partition)
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.RollingUpdateStatefulSetStrategy.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static RollingUpdateStatefulSetStrategy.Builder builder()
-
toBuilder
public RollingUpdateStatefulSetStrategy.Builder toBuilder()
-
getMaxUnavailable
public java.lang.String getMaxUnavailable()
-
getPartition
public java.lang.Number 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.
-
setMaxUnavailable
public void setMaxUnavailable(java.lang.String maxUnavailable)
-
setPartition
public void setPartition(java.lang.Number 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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-