Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for NewSpecFromVolume (0.27 sec)

  1. pkg/volume/emptydir/empty_dir_test.go

    		physicalMounter.MountPoints = []mount.MountPoint{
    			{
    				Path: volumePath,
    			},
    		}
    		volumeutil.SetReady(metadataDir)
    	}
    
    	mounter, err := plug.(*emptyDirPlugin).newMounterInternal(volume.NewSpecFromVolume(spec),
    		pod,
    		physicalMounter,
    		&mountDetector,
    		volume.VolumeOptions{})
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	if mounter == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. pkg/volume/nfs/nfs.go

    	nfsVolume := &v1.Volume{
    		Name: volumeName,
    		VolumeSource: v1.VolumeSource{
    			NFS: &v1.NFSVolumeSource{
    				Path: volumeName,
    			},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(nfsVolume),
    	}, nil
    }
    
    // NFS volumes represent a bare host file or directory mount of an NFS export.
    type nfs struct {
    	volName string
    	pod     *v1.Pod
    	mounter mount.Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. pkg/volume/secret/secret.go

    		Name: volName,
    		VolumeSource: v1.VolumeSource{
    			Secret: &v1.SecretVolumeSource{
    				SecretName: volName,
    			},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(secretVolume),
    	}, nil
    }
    
    type secretVolume struct {
    	volName string
    	podUID  types.UID
    	plugin  *secretPlugin
    	mounter mount.Interface
    	volume.MetricsProvider
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. pkg/volume/git_repo/git_repo.go

    	gitVolume := &v1.Volume{
    		Name: volumeName,
    		VolumeSource: v1.VolumeSource{
    			GitRepo: &v1.GitRepoVolumeSource{},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(gitVolume),
    	}, nil
    }
    
    // gitRepo volumes are directories which are pre-filled from a git repository.
    // These do not persist beyond the lifetime of a pod.
    type gitRepoVolume struct {
    	volName string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. pkg/volume/flexvolume/plugin.go

    		Name: volumeName,
    		VolumeSource: api.VolumeSource{
    			FlexVolume: &api.FlexVolumeSource{
    				Driver: plugin.driverName,
    			},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(flexVolume),
    	}, nil
    }
    
    func (plugin *flexVolumePlugin) SupportsMountOption() bool {
    	return false
    }
    
    // Mark the given commands as unsupported.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. pkg/volume/downwardapi/downwardapi.go

    	downwardAPIVolume := &v1.Volume{
    		Name: volumeName,
    		VolumeSource: v1.VolumeSource{
    			DownwardAPI: &v1.DownwardAPIVolumeSource{},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(downwardAPIVolume),
    	}, nil
    }
    
    // downwardAPIVolume retrieves downward API data and placing them into the volume on the host.
    type downwardAPIVolume struct {
    	volName string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. pkg/volume/hostpath/host_path_test.go

    		VolumeSource: v1.VolumeSource{HostPath: &v1.HostPathVolumeSource{Path: "/no/backsteps/allowed/.."}},
    	}
    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, err := plug.NewMounter(volume.NewSpecFromVolume(spec), pod, volume.VolumeOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = mounter.SetUp(volume.MounterArgs{})
    	expectedMsg := "invalid HostPath `/no/backsteps/allowed/..`: must not contain '..'"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_mounter_test.go

    			fsType:          "ext4",
    			setupShouldFail: true,
    			spec: func(fsType string, options []string) *volume.Spec {
    				volSrc := makeTestVol("pv1", testDriver)
    				volSrc.CSI.FSType = &fsType
    				return volume.NewSpecFromVolume(volSrc)
    			},
    		},
    		{
    			name:   "setup with persistent source",
    			podUID: types.UID(fmt.Sprintf("%08X", rand.Uint64())),
    			mode:   storage.VolumeLifecyclePersistent,
    			fsType: "zfs",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  9. pkg/volume/configmap/configmap.go

    	configMapVolume := &v1.Volume{
    		Name: volumeName,
    		VolumeSource: v1.VolumeSource{
    			ConfigMap: &v1.ConfigMapVolumeSource{},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(configMapVolume),
    	}, nil
    }
    
    type configMapVolume struct {
    	volName string
    	podUID  types.UID
    	plugin  *configMapPlugin
    	mounter mount.Interface
    	volume.MetricsProvider
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. pkg/volume/projected/projected.go

    	projectedVolume := &v1.Volume{
    		Name: volumeName,
    		VolumeSource: v1.VolumeSource{
    			Projected: &v1.ProjectedVolumeSource{},
    		},
    	}
    
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(projectedVolume),
    	}, nil
    }
    
    type projectedVolume struct {
    	volName string
    	sources []v1.VolumeProjection
    	podUID  types.UID
    	plugin  *projectedPlugin
    	volume.MetricsProvider
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top