Class IoK8sApiCoreV1GitRepoVolumeSource


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]")
    public class IoK8sApiCoreV1GitRepoVolumeSource
    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.
    • Constructor Detail

      • IoK8sApiCoreV1GitRepoVolumeSource

        public IoK8sApiCoreV1GitRepoVolumeSource()
    • Method Detail

      • getDirectory

        @Nullable
        public 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.
        Returns:
        directory
      • setDirectory

        public void setDirectory​(String directory)
      • getRepository

        public String getRepository()
        Repository URL
        Returns:
        repository
      • setRepository

        public void setRepository​(String repository)
      • getRevision

        @Nullable
        public String getRevision()
        Commit hash for the specified revision.
        Returns:
        revision
      • setRevision

        public void setRevision​(String revision)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object