io.k8s.api.core.v1.GitRepoVolumeSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s131 Show documentation
Show all versions of bl-k8s131 Show documentation
Programmatic resource management for Kubernetes
The newest version!
package io.k8s.api.core.v1;
import java.lang.String;
/**
* 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.
*/
public class GitRepoVolumeSource {
public String directory;
public String repository;
public String revision;
/**
* 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.
*/
public GitRepoVolumeSource directory(String directory) {
this.directory = directory;
return this;
}
/**
* repository is the URL
*/
public GitRepoVolumeSource repository(String repository) {
this.repository = repository;
return this;
}
/**
* revision is the commit hash for the specified revision.
*/
public GitRepoVolumeSource revision(String revision) {
this.revision = revision;
return this;
}
public static GitRepoVolumeSource gitRepoVolumeSource() {
return new GitRepoVolumeSource();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy