Struct k8s_openapi::api::core::v1::GitRepoVolumeSource
source · pub struct GitRepoVolumeSource {
pub directory: Option<String>,
pub repository: String,
pub revision: Option<String>,
}
Expand description
Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.
DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod’s container.
Fields§
§directory: Option<String>
directory is the target directory name. Must not contain or start with ‘..’. If ‘.’ is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
repository: String
repository is the URL
revision: Option<String>
revision is the commit hash for the specified revision.
Trait Implementations§
source§impl Clone for GitRepoVolumeSource
impl Clone for GitRepoVolumeSource
source§fn clone(&self) -> GitRepoVolumeSource
fn clone(&self) -> GitRepoVolumeSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GitRepoVolumeSource
impl Debug for GitRepoVolumeSource
source§impl DeepMerge for GitRepoVolumeSource
impl DeepMerge for GitRepoVolumeSource
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for GitRepoVolumeSource
impl Default for GitRepoVolumeSource
source§fn default() -> GitRepoVolumeSource
fn default() -> GitRepoVolumeSource
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GitRepoVolumeSource
impl<'de> Deserialize<'de> for GitRepoVolumeSource
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<GitRepoVolumeSource> for GitRepoVolumeSource
impl PartialEq<GitRepoVolumeSource> for GitRepoVolumeSource
source§fn eq(&self, other: &GitRepoVolumeSource) -> bool
fn eq(&self, other: &GitRepoVolumeSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.