Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 988 for volName (0.13 sec)

  1. cmd/xl-storage_test.go

    	}
    
    	testCases := []struct {
    		volName     string
    		expectedErr error
    	}{
    		// TestXLStorage case - 1.
    		// A valid case, volume creation is expected to succeed.
    		{
    			volName:     "success-vol",
    			expectedErr: nil,
    		},
    		// TestXLStorage case - 2.
    		// Case where a file exists by the name of the volume to be created.
    		{
    			volName:     "vol-as-file",
    			expectedErr: errVolumeExists,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  2. pkg/volume/local/local_test.go

    			}
    			if rec.Spec == nil {
    				t.Fatalf("ConstructVolumeSpec() returned nil")
    			}
    
    			volName := rec.Spec.Name()
    			if volName != testPVName {
    				t.Errorf("Expected volume name %q, got %q", testPVName, volName)
    			}
    
    			if rec.Spec.Volume != nil {
    				t.Errorf("Volume object returned, expected nil")
    			}
    
    			pv := rec.Spec.PersistentVolume
    			if pv == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_pods_linux_test.go

    				"disk1": kubecontainer.VolumeInfo{BlockVolumeMapper: &stubBlockVolume{dirPath: "/dev/", volName: "sda"}},
    				"disk2": kubecontainer.VolumeInfo{BlockVolumeMapper: &stubBlockVolume{dirPath: "/dev/disk/by-path/", volName: "diskPath"}, ReadOnly: true},
    				"disk3": kubecontainer.VolumeInfo{BlockVolumeMapper: &stubBlockVolume{dirPath: "/dev/disk/by-id/", volName: "diskUuid"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 18:00:59 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. pkg/kubelet/volume_host.go

    	}
    
    	return nil
    }
    
    func (kvh *kubeletVolumeHost) NewWrapperMounter(
    	volName string,
    	spec volume.Spec,
    	pod *v1.Pod,
    	opts volume.VolumeOptions) (volume.Mounter, error) {
    	// The name of wrapper volume is set to "wrapped_{wrapped_volume_name}"
    	wrapperVolumeName := "wrapped_" + volName
    	if spec.Volume != nil {
    		spec.Volume.Name = wrapperVolumeName
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_plugin_test.go

    			}
    
    			switch {
    			case rec.Spec.Volume != nil:
    				if rec.Spec.Volume.CSI == nil {
    					t.Error("missing CSIVolumeSource in constructed volume.Spec")
    				}
    				if rec.Spec.Volume.CSI.Driver != tc.originSpec.Volume.CSI.Driver {
    					t.Error("unexpected driver in constructed volume source:", rec.Spec.Volume.CSI.Driver)
    				}
    
    			case rec.Spec.PersistentVolume != nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/volume_host.go

    	return ctrl.kubeClient
    }
    
    func (ctrl *PersistentVolumeController) NewWrapperMounter(volName string, spec vol.Spec, pod *v1.Pod, opts vol.VolumeOptions) (vol.Mounter, error) {
    	return nil, fmt.Errorf("PersistentVolumeController.NewWrapperMounter is not implemented")
    }
    
    func (ctrl *PersistentVolumeController) NewWrapperUnmounter(volName string, spec vol.Spec, podUID types.UID) (vol.Unmounter, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. pkg/volume/iscsi/iscsi_util.go

    	utilexec "k8s.io/utils/exec"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/kubernetes/pkg/kubelet/config"
    	"k8s.io/kubernetes/pkg/volume"
    	volumeutil "k8s.io/kubernetes/pkg/volume/util"
    	"k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    const (
    	// Minimum number of paths that the volume plugin considers enough when a multipath volume is requested.
    	minMultipathCount = 2
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  8. pkg/volume/testing/volume_host.go

    	return map[v1.UniqueVolumeName]string{}, nil
    }
    
    func (f *fakeVolumeHost) NewWrapperMounter(volName string, spec Spec, pod *v1.Pod, opts VolumeOptions) (Mounter, error) {
    	// The name of wrapper volume is set to "wrapped_{wrapped_volume_name}"
    	wrapperVolumeName := "wrapped_" + volName
    	if spec.Volume != nil {
    		spec.Volume.Name = wrapperVolumeName
    	}
    	plug, err := f.pluginMgr.FindPluginBySpec(&spec)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. pkg/volume/flexvolume/unmounter_test.go

    	plugin, rootDir := testPlugin(t)
    	plugin.runner = fakeRunner(
    		assertDriverCall(t, notSupportedOutput(), unmountCmd,
    			rootDir+"/mount-dir"),
    	)
    
    	u, _ := plugin.newUnmounterInternal("volName", types.UID("poduid"), mounter, plugin.runner)
    	u.TearDownAt(rootDir + "/mount-dir")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  10. pkg/volume/iscsi/disk_manager.go

    	options := []string{"bind"}
    	if b.readOnly {
    		options = append(options, "ro")
    	}
    	if b.iscsiDisk.InitiatorName != "" {
    		// new iface name is <target portal>:<volume name>
    		b.iscsiDisk.Iface = b.iscsiDisk.Portals[0] + ":" + b.iscsiDisk.VolName
    	}
    	globalPDPath := manager.MakeGlobalPDName(*b.iscsiDisk)
    	mountOptions := util.JoinMountOptions(b.mountOptions, options)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top