GitRepoVolumeSource

data class GitRepoVolumeSource(val directory: String? = null, val repository: String, val revision: String? = null)

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.

Constructors

Link copied to clipboard
constructor(directory: String? = null, repository: String, revision: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val directory: String? = null

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.

Link copied to clipboard

repository is the URL

Link copied to clipboard
val revision: String? = null

revision is the commit hash for the specified revision.