Package io.fabric8.kubernetes.api.model
Class GitRepoVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.GitRepoVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<GitRepoVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class GitRepoVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<GitRepoVolumeSourceBuilder>, KubernetesResource
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GitRepoVolumeSource()
No args constructor for use in serializationGitRepoVolumeSource(String directory, String repository, String revision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitRepoVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getDirectory()
directory is the target directory name.String
getRepository()
repository is the URLString
getRevision()
revision is the commit hash for the specified revision.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setDirectory(String directory)
directory is the target directory name.void
setRepository(String repository)
repository is the URLvoid
setRevision(String revision)
revision is the commit hash for the specified revision.GitRepoVolumeSourceBuilder
toBuilder()
-
-
-
Method Detail
-
getDirectory
public String 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.
-
setDirectory
public void setDirectory(String directory)
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.
-
getRepository
public String getRepository()
repository is the URL
-
setRepository
public void setRepository(String repository)
repository is the URL
-
getRevision
public String getRevision()
revision is the commit hash for the specified revision.
-
setRevision
public void setRevision(String revision)
revision is the commit hash for the specified revision.
-
edit
public GitRepoVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<GitRepoVolumeSourceBuilder>
-
toBuilder
public GitRepoVolumeSourceBuilder toBuilder()
-
-