whenDeleted property
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.
Implementation
final String? whenDeleted;