Class V1GitRepoVolumeSource
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1GitRepoVolumeSource
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet directory in a chainable fashion.boolean
directory is the target directory name.repository is the URLrevision is the commit hash for the specified revision.int
hashCode()
repository
(String repository) Set repository in a chainable fashion.Set revision in a chainable fashion.void
setDirectory
(String directory) Set the directory property valuevoid
setRepository
(String repository) Set the repository property valuevoid
setRevision
(String revision) Set the revision property valuetoString()
-
Field Details
-
JSON_PROPERTY_DIRECTORY
- See Also:
-
JSON_PROPERTY_REPOSITORY
- See Also:
-
JSON_PROPERTY_REVISION
- See Also:
-
-
Constructor Details
-
V1GitRepoVolumeSource
-
-
Method Details
-
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:
- the directory property value
-
setDirectory
Set the directory property value -
directory
Set directory in a chainable fashion.- Returns:
- The same instance of V1GitRepoVolumeSource for chaining.
-
getRepository
repository is the URL- Returns:
- the repository property value
-
setRepository
Set the repository property value -
repository
Set repository in a chainable fashion.- Returns:
- The same instance of V1GitRepoVolumeSource for chaining.
-
getRevision
revision is the commit hash for the specified revision.- Returns:
- the revision property value
-
setRevision
Set the revision property value -
revision
Set revision in a chainable fashion.- Returns:
- The same instance of V1GitRepoVolumeSource for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-