StatefulSetPersistentVolumeClaimRetentionPolicyV1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the retention policy for PersistentVolumeClaims (PVCs) associated with a StatefulSet in Kubernetes.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class StatefulSetPersistentVolumeClaimRetentionPolicyV1
[<YamlDotNet.Serialization.YamlSerializable>]
type StatefulSetPersistentVolumeClaimRetentionPolicyV1 = class
Public NotInheritable Class StatefulSetPersistentVolumeClaimRetentionPolicyV1
- Inheritance
-
StatefulSetPersistentVolumeClaimRetentionPolicyV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
The StatefulSetPersistentVolumeClaimRetentionPolicyV1 class specifies the behavior of PersistentVolumeClaims when a StatefulSet is either deleted or scaled down. It defines retention behaviors through the properties WhenDeleted and WhenScaled.
Constructors
StatefulSetPersistentVolumeClaimRetentionPolicyV1() |
Properties
WhenDeleted |
Gets or sets the policy that determines the retention behavior of PersistentVolumeClaims (PVCs) when a StatefulSet is deleted. This property defines how PVCs associated with the StatefulSet should be handled upon deletion of the StatefulSet resource. |
WhenScaled |
Gets or sets the policy for handling Persistent Volume Claims (PVCs) when a StatefulSet is scaled. This property determines how PVCs are retained or deleted based on scaling operations for the StatefulSet. |