Class GitRepoVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.GitRepoVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class GitRepoVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitRepoVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description GitRepoVolumeSource()
GitRepoVolumeSource(java.lang.String directory, @NonNull java.lang.String repository, java.lang.String revision)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GitRepoVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getDirectory()
Target directory name.@NonNull java.lang.String
getRepository()
Repository URLjava.lang.String
getRevision()
Commit hash for the specified revision.int
hashCode()
void
setDirectory(java.lang.String directory)
Target directory name.void
setRepository(@NonNull java.lang.String repository)
Repository URLvoid
setRevision(java.lang.String revision)
Commit hash for the specified revision.GitRepoVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static GitRepoVolumeSource.Builder builder()
-
toBuilder
public GitRepoVolumeSource.Builder toBuilder()
-
getDirectory
public java.lang.String getDirectory()
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
@NonNull public @NonNull java.lang.String getRepository()
Repository URL
-
getRevision
public java.lang.String getRevision()
Commit hash for the specified revision.
-
setDirectory
public void setDirectory(java.lang.String directory)
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.
-
setRepository
public void setRepository(@NonNull @NonNull java.lang.String repository)
Repository URL
-
setRevision
public void setRevision(java.lang.String revision)
Commit hash for the specified revision.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-