[−][src]Struct k8s_openapi::api::core::v1::EphemeralVolumeSource
Represents an ephemeral volume that is handled by a normal storage driver.
Fields
read_only: Option<bool>
Specifies a read-only configuration for the volume. Defaults to false (read/write).
volume_claim_template: Option<PersistentVolumeClaimTemplate>
Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be \<pod name\>-\<volume name\>
where \<volume name\>
is the name from the PodSpec.Volumes
array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).
An existing PVC with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.
This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.
Required, must not be nil.
Trait Implementations
impl Clone for EphemeralVolumeSource
[src]
pub fn clone(&self) -> EphemeralVolumeSource
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EphemeralVolumeSource
[src]
impl Default for EphemeralVolumeSource
[src]
pub fn default() -> EphemeralVolumeSource
[src]
impl<'de> Deserialize<'de> for EphemeralVolumeSource
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<EphemeralVolumeSource> for EphemeralVolumeSource
[src]
pub fn eq(&self, other: &EphemeralVolumeSource) -> bool
[src]
pub fn ne(&self, other: &EphemeralVolumeSource) -> bool
[src]
impl Serialize for EphemeralVolumeSource
[src]
impl StructuralPartialEq for EphemeralVolumeSource
[src]
Auto Trait Implementations
impl RefUnwindSafe for EphemeralVolumeSource
[src]
impl Send for EphemeralVolumeSource
[src]
impl Sync for EphemeralVolumeSource
[src]
impl Unpin for EphemeralVolumeSource
[src]
impl UnwindSafe for EphemeralVolumeSource
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,