StatefulSetPersistentVolumeClaimRetentionPolicyV1
Class sealed net10.0
Represents the retention policy for PersistentVolumeClaims (PVCs) associated with a StatefulSet in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class StatefulSetPersistentVolumeClaimRetentionPolicyV1{ // ...}Remarks
Section titled 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.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesWhenDeletedget; setstring? 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.
WhenScaledget; setstring? 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.