Struct k8s_openapi::api::core::v1::ImageVolumeSource
source · pub struct ImageVolumeSource {
pub pull_policy: Option<String>,
pub reference: Option<String>,
}
Expand description
ImageVolumeSource represents a image volume resource.
Fields§
§pull_policy: Option<String>
Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn’t present. IfNotPresent: the kubelet pulls if the reference isn’t already present on disk. Container creation will fail if the reference isn’t present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
reference: Option<String>
Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
Trait Implementations§
source§impl Clone for ImageVolumeSource
impl Clone for ImageVolumeSource
source§fn clone(&self) -> ImageVolumeSource
fn clone(&self) -> ImageVolumeSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageVolumeSource
impl Debug for ImageVolumeSource
source§impl DeepMerge for ImageVolumeSource
impl DeepMerge for ImageVolumeSource
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ImageVolumeSource
impl Default for ImageVolumeSource
source§fn default() -> ImageVolumeSource
fn default() -> ImageVolumeSource
source§impl<'de> Deserialize<'de> for ImageVolumeSource
impl<'de> Deserialize<'de> for ImageVolumeSource
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 for ImageVolumeSource
impl PartialEq for ImageVolumeSource
source§impl Serialize for ImageVolumeSource
impl Serialize for ImageVolumeSource
impl StructuralPartialEq for ImageVolumeSource
Auto Trait Implementations§
impl Freeze for ImageVolumeSource
impl RefUnwindSafe for ImageVolumeSource
impl Send for ImageVolumeSource
impl Sync for ImageVolumeSource
impl Unpin for ImageVolumeSource
impl UnwindSafe for ImageVolumeSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)