Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for GitRepoVolumeSource (0.4 sec)

  1. pkg/volume/git_repo/git_repo_test.go

    				Name: "vol1",
    				VolumeSource: v1.VolumeSource{
    					GitRepo: &v1.GitRepoVolumeSource{
    						Repository: "--foo",
    					},
    				},
    			},
    			isExpectedFailure: true,
    		},
    		{
    			name: "invalid-revision",
    			vol: &v1.Volume{
    				Name: "vol1",
    				VolumeSource: v1.VolumeSource{
    					GitRepo: &v1.GitRepoVolumeSource{
    						Repository: gitURL,
    						Revision:   "--bar",
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 08:26:26 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. pkg/volume/git_repo/git_repo.go

    	return volumeutil.UnmountViaEmptyDir(dir, c.plugin.host, c.volName, wrappedVolumeSpec(), c.podUID)
    }
    
    func getVolumeSource(spec *volume.Spec) (*v1.GitRepoVolumeSource, bool) {
    	var readOnly bool
    	var volumeSource *v1.GitRepoVolumeSource
    
    	if spec.Volume != nil && spec.Volume.GitRepo != nil {
    		volumeSource = spec.Volume.GitRepo
    		readOnly = spec.ReadOnly
    	}
    
    	return volumeSource, readOnly
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. pkg/apis/core/v1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1.GitRepoVolumeSource)(nil), (*core.GitRepoVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_GitRepoVolumeSource_To_core_GitRepoVolumeSource(a.(*v1.GitRepoVolumeSource), b.(*core.GitRepoVolumeSource), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  4. pkg/apis/core/zz_generated.deepcopy.go

    func (in *GitRepoVolumeSource) DeepCopyInto(out *GitRepoVolumeSource) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoVolumeSource.
    func (in *GitRepoVolumeSource) DeepCopy() *GitRepoVolumeSource {
    	if in == nil {
    		return nil
    	}
    	out := new(GitRepoVolumeSource)
    	in.DeepCopyInto(out)
    	return out
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    func (in *GitRepoVolumeSource) DeepCopyInto(out *GitRepoVolumeSource) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoVolumeSource.
    func (in *GitRepoVolumeSource) DeepCopy() *GitRepoVolumeSource {
    	if in == nil {
    		return nil
    	}
    	out := new(GitRepoVolumeSource)
    	in.DeepCopyInto(out)
    	return out
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/core/v1/generated.pb.go

    func (m *GitRepoVolumeSource) Reset()      { *m = GitRepoVolumeSource{} }
    func (*GitRepoVolumeSource) ProtoMessage() {}
    func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) {
    	return fileDescriptor_6c07b07c062484ab, []int{66}
    }
    func (m *GitRepoVolumeSource) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
  7. pkg/apis/core/types.go

    	// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
    	// into the Pod's container.
    	// +optional
    	GitRepo *GitRepoVolumeSource
    	// Secret represents a secret that should populate this volume.
    	// +optional
    	Secret *SecretVolumeSource
    	// NFS represents an NFS mount on the host that shares a pod's lifetime
    	// +optional
    	NFS *NFSVolumeSource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  8. pkg/apis/core/validation/validation_test.go

    				VolumeSource: core.VolumeSource{
    					GitRepo: &core.GitRepoVolumeSource{
    						Repository: "my-repo",
    						Revision:   "hashstring",
    						Directory:  "target",
    					},
    				},
    			},
    		}, {
    			name: "valid GitRepo in .",
    			vol: core.Volume{
    				Name: "git-repo-dot",
    				VolumeSource: core.VolumeSource{
    					GitRepo: &core.GitRepoVolumeSource{
    						Repository: "my-repo",
    						Directory:  ".",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/generated.proto

    // 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.
    message GitRepoVolumeSource {
      // repository is the URL
      optional string repository = 1;
    
      // revision is the commit hash for the specified revision.
      // +optional
      optional string revision = 2;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 280.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/types.go

    	// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
    	// into the Pod's container.
    	// +optional
    	GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty" protobuf:"bytes,5,opt,name=gitRepo"`
    	// secret represents a secret that should populate this volume.
    	// More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
Back to top