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 Details

  • Constructor Details

    • V1GitRepoVolumeSource

      public V1GitRepoVolumeSource(String repository)
  • Method Details

    • getRepository

      public String getRepository()
      repository is the URL
      Returns:
      the repository property value
    • setRepository

      public void setRepository(String repository)
      Set the repository property value
      Parameters:
      repository - property value to set
    • repository

      public V1GitRepoVolumeSource repository(String repository)
      Set repository in a chainable fashion.
      Returns:
      The same instance of V1GitRepoVolumeSource for chaining.
    • getDirectory

      public 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.
      Returns:
      the directory property value
    • setDirectory

      public void setDirectory(String directory)
      Set the directory property value
      Parameters:
      directory - property value to set
    • directory

      public V1GitRepoVolumeSource directory(String directory)
      Set directory in a chainable fashion.
      Returns:
      The same instance of V1GitRepoVolumeSource for chaining.
    • getRevision

      public String getRevision()
      revision is the commit hash for the specified revision.
      Returns:
      the revision property value
    • setRevision

      public void setRevision(String revision)
      Set the revision property value
      Parameters:
      revision - property value to set
    • revision

      public V1GitRepoVolumeSource revision(String revision)
      Set revision in a chainable fashion.
      Returns:
      The same instance of V1GitRepoVolumeSource for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object