Class 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.

    • Constructor Detail

      • GitRepoVolumeSource

        public GitRepoVolumeSource​(java.lang.String directory,
                                   @NonNull
                                   @NonNull java.lang.String repository,
                                   java.lang.String revision)
      • GitRepoVolumeSource

        public GitRepoVolumeSource()
    • Method Detail

      • getDirectory

        public java.lang.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.
      • getRepository

        @NonNull
        public @NonNull java.lang.String getRepository()
        repository is the URL
      • getRevision

        public java.lang.String getRevision()
        revision is the commit hash for the specified revision.
      • setDirectory

        public void setDirectory​(java.lang.String directory)
        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.
      • setRepository

        public void setRepository​(@NonNull
                                  @NonNull java.lang.String repository)
        repository is the URL
      • setRevision

        public void setRevision​(java.lang.String revision)
        revision is the commit hash for the specified revision.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object