case class StatefulSetPersistentVolumeClaimRetentionPolicy(whenDeleted: Optional[String] = Optional.Absent, whenScaled: Optional[String] = Optional.Absent) extends Product with Serializable
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
- whenDeleted
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. TheDelete
policy causes those PVCs to be deleted.- whenScaled
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. TheDelete
policy causes the associated PVCs for any excess pods above the replica count to be deleted.
- Alphabetic
- By Inheritance
- StatefulSetPersistentVolumeClaimRetentionPolicy
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StatefulSetPersistentVolumeClaimRetentionPolicy(whenDeleted: Optional[String] = Optional.Absent, whenScaled: Optional[String] = Optional.Absent)
- whenDeleted
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. TheDelete
policy causes those PVCs to be deleted.- whenScaled
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. TheDelete
policy causes the associated PVCs for any excess pods above the replica count to be deleted.
Value Members
-
def
getWhenDeleted: IO[K8sFailure, String]
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.
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. TheDelete
policy causes those PVCs to be deleted.If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getWhenScaled: IO[K8sFailure, String]
WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.
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. TheDelete
policy causes the associated PVCs for any excess pods above the replica count to be deleted.If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val whenDeleted: Optional[String]
- val whenScaled: Optional[String]