StatefulSetPersistentVolumeClaimRetentionPolicy class

StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.

Constructors

StatefulSetPersistentVolumeClaimRetentionPolicy({String? whenDeleted, String? whenScaled})
Default constructor.
const
StatefulSetPersistentVolumeClaimRetentionPolicy.fromJson(Map<String, dynamic> json)
Creates a StatefulSetPersistentVolumeClaimRetentionPolicy from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whenDeleted String?
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of Retain causes PVCs to not be affected by StatefulSet deletion. The Delete policy causes those PVCs to be deleted.
final
whenScaled String?
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a StatefulSetPersistentVolumeClaimRetentionPolicy instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited