Stateful Set Persistent Volume Claim Retention Policy Patch Args
data class StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs(val whenDeleted: Output<String>? = null, val whenScaled: Output<String>? = null) : ConvertibleToJava<StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs>
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
Constructors
Link copied to clipboard
fun StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs(whenDeleted: Output<String>? = null, whenScaled: Output<String>? = null)
Functions
Properties
Link copied to clipboard
WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of Retain
causes PVCs to not be affected by a scaledown. The Delete
policy causes the associated PVCs for any excess pods above the replica count to be deleted.