Struct k8s_openapi::api::core::v1::EphemeralVolumeSource
source · pub struct EphemeralVolumeSource {
pub volume_claim_template: Option<PersistentVolumeClaimTemplate>,
}
Expand description
Represents an ephemeral volume that is handled by a normal storage driver.
Fields§
§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§
source§impl Clone for EphemeralVolumeSource
impl Clone for EphemeralVolumeSource
source§fn clone(&self) -> EphemeralVolumeSource
fn clone(&self) -> EphemeralVolumeSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EphemeralVolumeSource
impl Debug for EphemeralVolumeSource
source§impl DeepMerge for EphemeralVolumeSource
impl DeepMerge for EphemeralVolumeSource
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for EphemeralVolumeSource
impl Default for EphemeralVolumeSource
source§fn default() -> EphemeralVolumeSource
fn default() -> EphemeralVolumeSource
source§impl<'de> Deserialize<'de> for EphemeralVolumeSource
impl<'de> Deserialize<'de> for EphemeralVolumeSource
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>,
source§impl PartialEq<EphemeralVolumeSource> for EphemeralVolumeSource
impl PartialEq<EphemeralVolumeSource> for EphemeralVolumeSource
source§fn eq(&self, other: &EphemeralVolumeSource) -> bool
fn eq(&self, other: &EphemeralVolumeSource) -> bool
self
and other
values to be equal, and is used
by ==
.