pub struct IoK8sApiCoreV1GitRepoVolumeSource {
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>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: StringRepository URL
revision: Option<String>Commit hash for the specified revision.
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1GitRepoVolumeSource
impl Clone for IoK8sApiCoreV1GitRepoVolumeSource
Source§fn clone(&self) -> IoK8sApiCoreV1GitRepoVolumeSource
fn clone(&self) -> IoK8sApiCoreV1GitRepoVolumeSource
Returns a duplicate 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<'de> Deserialize<'de> for IoK8sApiCoreV1GitRepoVolumeSource
impl<'de> Deserialize<'de> for IoK8sApiCoreV1GitRepoVolumeSource
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 From<&IoK8sApiCoreV1GitRepoVolumeSource> for IoK8sApiCoreV1GitRepoVolumeSource
impl From<&IoK8sApiCoreV1GitRepoVolumeSource> for IoK8sApiCoreV1GitRepoVolumeSource
Source§fn from(value: &IoK8sApiCoreV1GitRepoVolumeSource) -> Self
fn from(value: &IoK8sApiCoreV1GitRepoVolumeSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1GitRepoVolumeSource
impl RefUnwindSafe for IoK8sApiCoreV1GitRepoVolumeSource
impl Send for IoK8sApiCoreV1GitRepoVolumeSource
impl Sync for IoK8sApiCoreV1GitRepoVolumeSource
impl Unpin for IoK8sApiCoreV1GitRepoVolumeSource
impl UnwindSafe for IoK8sApiCoreV1GitRepoVolumeSource
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
Mutably borrows from an owned value. Read more