
org.cdk8s.plus31.StatefulSetUpdateStrategy Maven / Gradle / Ivy
package org.cdk8s.plus31;
/**
* StatefulSet update strategies.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-10-12T12:14:17.461Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.plus31.$Module.class, fqn = "cdk8s-plus-31.StatefulSetUpdateStrategy")
public class StatefulSetUpdateStrategy extends software.amazon.jsii.JsiiObject {
protected StatefulSetUpdateStrategy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected StatefulSetUpdateStrategy(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* The controller will not automatically update the Pods in a StatefulSet.
*
* Users must manually delete Pods to cause the controller to create new Pods
* that reflect modifications.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus31.StatefulSetUpdateStrategy onDelete() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus31.StatefulSetUpdateStrategy.class, "onDelete", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.StatefulSetUpdateStrategy.class));
}
/**
* The controller will delete and recreate each Pod in the StatefulSet.
*
* It will proceed in the same order as Pod termination (from the largest ordinal to the smallest),
* updating each Pod one at a time. The Kubernetes control plane waits until an updated
* Pod is Running and Ready prior to updating its predecessor.
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus31.StatefulSetUpdateStrategy rollingUpdate(final @org.jetbrains.annotations.Nullable org.cdk8s.plus31.StatefulSetUpdateStrategyRollingUpdateOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus31.StatefulSetUpdateStrategy.class, "rollingUpdate", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.StatefulSetUpdateStrategy.class), new Object[] { options });
}
/**
* The controller will delete and recreate each Pod in the StatefulSet.
*
* It will proceed in the same order as Pod termination (from the largest ordinal to the smallest),
* updating each Pod one at a time. The Kubernetes control plane waits until an updated
* Pod is Running and Ready prior to updating its predecessor.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus31.StatefulSetUpdateStrategy rollingUpdate() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus31.StatefulSetUpdateStrategy.class, "rollingUpdate", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.StatefulSetUpdateStrategy.class));
}
}