Class V1StatefulSetPersistentVolumeClaimRetentionPolicy
java.lang.Object
io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-12-05T08:14:34.919Z[Etc/UTC]")
public class V1StatefulSetPersistentVolumeClaimRetentionPolicy
extends Object
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from
the StatefulSet VolumeClaimTemplates.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.int
hashCode()
void
setWhenDeleted
(String whenDeleted) void
setWhenScaled
(String whenScaled) toString()
whenDeleted
(String whenDeleted) whenScaled
(String whenScaled)
-
Field Details
-
SERIALIZED_NAME_WHEN_DELETED
- See Also:
-
SERIALIZED_NAME_WHEN_SCALED
- See Also:
-
-
Constructor Details
-
V1StatefulSetPersistentVolumeClaimRetentionPolicy
public V1StatefulSetPersistentVolumeClaimRetentionPolicy()
-
-
Method Details
-
whenDeleted
-
getWhenDeleted
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.- Returns:
- whenDeleted
-
setWhenDeleted
-
whenScaled
-
getWhenScaled
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.- Returns:
- whenScaled
-
setWhenScaled
-
equals
-
hashCode
public int hashCode() -
toString
-