Class StatefulSetPersistentVolumeClaimRetentionPolicy
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StatefulSetPersistentVolumeClaimRetentionPolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StatefulSetPersistentVolumeClaimRetentionPolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<StatefulSetPersistentVolumeClaimRetentionPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatefulSetPersistentVolumeClaimRetentionPolicy()No args constructor for use in serializationStatefulSetPersistentVolumeClaimRetentionPolicy(String whenDeleted, String whenScaled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatefulSetPersistentVolumeClaimRetentionPolicyBuilderedit()Map<String,Object>getAdditionalProperties()StringgetWhenDeleted()WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.StringgetWhenScaled()WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetWhenDeleted(String whenDeleted)WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.voidsetWhenScaled(String whenScaled)WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.StatefulSetPersistentVolumeClaimRetentionPolicyBuildertoBuilder()
-
-
-
Method Detail
-
getWhenDeleted
public String 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.
-
setWhenDeleted
public void setWhenDeleted(String 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. The `Delete` policy causes those PVCs to be deleted.
-
getWhenScaled
public String 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.
-
setWhenScaled
public void setWhenScaled(String 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. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.
-
edit
public StatefulSetPersistentVolumeClaimRetentionPolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<StatefulSetPersistentVolumeClaimRetentionPolicyBuilder>
-
toBuilder
public StatefulSetPersistentVolumeClaimRetentionPolicyBuilder toBuilder()
-
-