pub struct StatefulSetPersistentVolumeClaimRetentionPolicy {
pub when_deleted: Option<String>,
pub when_scaled: Option<String>,
}
Expand description
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
Fields§
§when_deleted: Option<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.
when_scaled: Option<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.
Trait Implementations§
source§impl Clone for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Clone for StatefulSetPersistentVolumeClaimRetentionPolicy
source§fn clone(&self) -> StatefulSetPersistentVolumeClaimRetentionPolicy
fn clone(&self) -> StatefulSetPersistentVolumeClaimRetentionPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DeepMerge for StatefulSetPersistentVolumeClaimRetentionPolicy
impl DeepMerge for StatefulSetPersistentVolumeClaimRetentionPolicy
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Default for StatefulSetPersistentVolumeClaimRetentionPolicy
source§fn default() -> StatefulSetPersistentVolumeClaimRetentionPolicy
fn default() -> StatefulSetPersistentVolumeClaimRetentionPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StatefulSetPersistentVolumeClaimRetentionPolicy
impl<'de> Deserialize<'de> for StatefulSetPersistentVolumeClaimRetentionPolicy
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<StatefulSetPersistentVolumeClaimRetentionPolicy> for StatefulSetPersistentVolumeClaimRetentionPolicy
impl PartialEq<StatefulSetPersistentVolumeClaimRetentionPolicy> for StatefulSetPersistentVolumeClaimRetentionPolicy
source§fn eq(&self, other: &StatefulSetPersistentVolumeClaimRetentionPolicy) -> bool
fn eq(&self, other: &StatefulSetPersistentVolumeClaimRetentionPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.