Class V1GitRepoVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1GitRepoVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T21:37:40.170033Z[Etc/UTC]")
public class V1GitRepoVolumeSource
extends Object
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
directory is the target directory name.repository is the URLrevision is the commit hash for the specified revision.int
hashCode()
repository
(String repository) void
setDirectory
(String directory) void
setRepository
(String repository) void
setRevision
(String revision) toString()
-
Field Details
-
SERIALIZED_NAME_DIRECTORY
- See Also:
-
SERIALIZED_NAME_REPOSITORY
- See Also:
-
SERIALIZED_NAME_REVISION
- See Also:
-
-
Constructor Details
-
V1GitRepoVolumeSource
public V1GitRepoVolumeSource()
-
-
Method Details
-
directory
-
getDirectory
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.- Returns:
- directory
-
setDirectory
-
repository
-
getRepository
repository is the URL- Returns:
- repository
-
setRepository
-
revision
-
getRevision
revision is the commit hash for the specified revision.- Returns:
- revision
-
setRevision
-
equals
-
hashCode
public int hashCode() -
toString
-