Class GitRepoVolumeSource

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<GitRepoVolumeSourceBuilder>, KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class GitRepoVolumeSource
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<GitRepoVolumeSourceBuilder>, KubernetesResource
    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • GitRepoVolumeSource

        public GitRepoVolumeSource()
        No args constructor for use in serialization
      • GitRepoVolumeSource

        public GitRepoVolumeSource​(String directory,
                                   String repository,
                                   String revision)
    • Method Detail

      • 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.
      • setDirectory

        public void setDirectory​(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.
      • getRepository

        public String getRepository()
        repository is the URL
      • setRepository

        public void setRepository​(String repository)
        repository is the URL
      • getRevision

        public String getRevision()
        revision is the commit hash for the specified revision.
      • setRevision

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

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)