Package org.cdk8s.plus25.k8s
Interface GitRepoVolumeSource
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GitRepoVolumeSource.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.544Z") @Stability(Stable) public interface GitRepoVolumeSource extends software.amazon.jsii.JsiiSerializable
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 Interface Description static classGitRepoVolumeSource.BuilderA builder forGitRepoVolumeSourcestatic classGitRepoVolumeSource.Jsii$ProxyAn implementation forGitRepoVolumeSource
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static GitRepoVolumeSource.Builderbuilder()default StringgetDirectory()directory is the target directory name.StringgetRepository()repository is the URL.default StringgetRevision()revision is the commit hash for the specified revision.
-
-
-
Method Detail
-
getRepository
@Stability(Stable) @NotNull String getRepository()
repository is the URL.
-
getDirectory
@Stability(Stable) @Nullable default 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.
-
getRevision
@Stability(Stable) @Nullable default String getRevision()
revision is the commit hash for the specified revision.
-
builder
@Stability(Stable) static GitRepoVolumeSource.Builder builder()
- Returns:
- a
GitRepoVolumeSource.BuilderofGitRepoVolumeSource
-
-