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
sourceimpl Clone for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Clone for StatefulSetPersistentVolumeClaimRetentionPolicy
sourcefn clone(&self) -> StatefulSetPersistentVolumeClaimRetentionPolicy
fn clone(&self) -> StatefulSetPersistentVolumeClaimRetentionPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Default for StatefulSetPersistentVolumeClaimRetentionPolicy
sourcefn default() -> StatefulSetPersistentVolumeClaimRetentionPolicy
fn default() -> StatefulSetPersistentVolumeClaimRetentionPolicy
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for StatefulSetPersistentVolumeClaimRetentionPolicy
impl<'de> Deserialize<'de> for StatefulSetPersistentVolumeClaimRetentionPolicy
sourcefn 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
sourceimpl PartialEq<StatefulSetPersistentVolumeClaimRetentionPolicy> for StatefulSetPersistentVolumeClaimRetentionPolicy
impl PartialEq<StatefulSetPersistentVolumeClaimRetentionPolicy> for StatefulSetPersistentVolumeClaimRetentionPolicy
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &StatefulSetPersistentVolumeClaimRetentionPolicy) -> bool
fn ne(&self, other: &StatefulSetPersistentVolumeClaimRetentionPolicy) -> bool
This method tests for !=
.
impl StructuralPartialEq for StatefulSetPersistentVolumeClaimRetentionPolicy
Auto Trait Implementations
impl RefUnwindSafe for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Send for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Sync for StatefulSetPersistentVolumeClaimRetentionPolicy
impl Unpin for StatefulSetPersistentVolumeClaimRetentionPolicy
impl UnwindSafe for StatefulSetPersistentVolumeClaimRetentionPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more