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
.