Class RollingUpdateStatefulSetStrategy.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.k8s.RollingUpdateStatefulSetStrategy.Jsii$Proxy
-
- All Implemented Interfaces:
RollingUpdateStatefulSetStrategy
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- RollingUpdateStatefulSetStrategy
@Stability(Stable) @Internal public static final class RollingUpdateStatefulSetStrategy.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RollingUpdateStatefulSetStrategy
An implementation forRollingUpdateStatefulSetStrategy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.k8s.RollingUpdateStatefulSetStrategy
RollingUpdateStatefulSetStrategy.Builder, RollingUpdateStatefulSetStrategy.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(RollingUpdateStatefulSetStrategy.Builder builder)
Constructor that initializes the object based on literal property values passed by theRollingUpdateStatefulSetStrategy.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
IntOrString
getMaxUnavailable()
The maximum number of pods that can be unavailable during the update.Number
getPartition()
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(RollingUpdateStatefulSetStrategy.Builder builder)
Constructor that initializes the object based on literal property values passed by theRollingUpdateStatefulSetStrategy.Builder
.
-
-
Method Detail
-
getMaxUnavailable
public final IntOrString getMaxUnavailable()
Description copied from interface:RollingUpdateStatefulSetStrategy
The maximum number of pods that can be unavailable during the update.Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.
Default: 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.
- Specified by:
getMaxUnavailable
in interfaceRollingUpdateStatefulSetStrategy
-
getPartition
public final Number getPartition()
Description copied from interface:RollingUpdateStatefulSetStrategy
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.
- Specified by:
getPartition
in interfaceRollingUpdateStatefulSetStrategy
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-