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 duplicate 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 JsonSchema for StatefulSetPersistentVolumeClaimRetentionPolicy
Available on crate feature schemars only.
impl JsonSchema for StatefulSetPersistentVolumeClaimRetentionPolicy
Available on crate feature
schemars only.Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StatefulSetPersistentVolumeClaimRetentionPolicy
impl PartialEq for StatefulSetPersistentVolumeClaimRetentionPolicy
Source§fn eq(&self, other: &StatefulSetPersistentVolumeClaimRetentionPolicy) -> bool
fn eq(&self, other: &StatefulSetPersistentVolumeClaimRetentionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatefulSetPersistentVolumeClaimRetentionPolicy
Auto Trait Implementations§
impl Freeze for StatefulSetPersistentVolumeClaimRetentionPolicy
impl RefUnwindSafe for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Send for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Sync for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Unpin for StatefulSetPersistentVolumeClaimRetentionPolicy
impl UnwindSafe for StatefulSetPersistentVolumeClaimRetentionPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more