Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.75 KB

File metadata and controls

30 lines (23 loc) · 1.75 KB

V1GitRepoVolumeSource

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.

Properties

Name Type Description Notes
directory str 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. [optional]
repository str repository is the URL
revision str revision is the commit hash for the specified revision. [optional]

Example

from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource

# TODO update the JSON string below
json = "{}"
# create an instance of V1GitRepoVolumeSource from a JSON string
v1_git_repo_volume_source_instance = V1GitRepoVolumeSource.from_json(json)
# print the JSON string representation of the object
print(V1GitRepoVolumeSource.to_json())

# convert the object into a dict
v1_git_repo_volume_source_dict = v1_git_repo_volume_source_instance.to_dict()
# create an instance of V1GitRepoVolumeSource from a dict
v1_git_repo_volume_source_from_dict = V1GitRepoVolumeSource.from_dict(v1_git_repo_volume_source_dict)

[Back to Model list] [Back to API list] [Back to README]