Package org.cdk8s.plus25.k8s
Interface StatefulSetPersistentVolumeClaimRetentionPolicy
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StatefulSetPersistentVolumeClaimRetentionPolicy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.821Z") @Stability(Stable) public interface StatefulSetPersistentVolumeClaimRetentionPolicy extends software.amazon.jsii.JsiiSerializable
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStatefulSetPersistentVolumeClaimRetentionPolicy.BuilderA builder forStatefulSetPersistentVolumeClaimRetentionPolicystatic classStatefulSetPersistentVolumeClaimRetentionPolicy.Jsii$ProxyAn implementation forStatefulSetPersistentVolumeClaimRetentionPolicy
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static StatefulSetPersistentVolumeClaimRetentionPolicy.Builderbuilder()default StringgetWhenDeleted()WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.default StringgetWhenScaled()WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.
-
-
-
Method Detail
-
getWhenDeleted
@Stability(Stable) @Nullable default String getWhenDeleted()
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.The default policy of
Retaincauses PVCs to not be affected by StatefulSet deletion. TheDeletepolicy causes those PVCs to be deleted.
-
getWhenScaled
@Stability(Stable) @Nullable default String getWhenScaled()
WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.The default policy of
Retaincauses PVCs to not be affected by a scaledown. TheDeletepolicy causes the associated PVCs for any excess pods above the replica count to be deleted.
-
builder
@Stability(Stable) static StatefulSetPersistentVolumeClaimRetentionPolicy.Builder builder()
-
-