Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for volID (0.04 sec)

  1. pkg/volume/csi/csi_client_test.go

    	testCases := []struct {
    		name       string
    		volID      string
    		targetPath string
    		mustFail   bool
    		err        error
    	}{
    		{name: "test ok", volID: "vol-test", targetPath: testPath},
    		{name: "missing volID", targetPath: testPath, mustFail: true},
    		{name: "missing target path", volID: testPath, mustFail: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_client.go

    	return *updatedQuantity, nil
    }
    
    func (c *csiDriverClient) NodeUnpublishVolume(ctx context.Context, volID string, targetPath string) error {
    	klog.V(4).InfoS(log("calling NodeUnpublishVolume rpc"), "volID", volID, "targetPath", targetPath)
    	if volID == "" {
    		return errors.New("missing volume id")
    	}
    	if targetPath == "" {
    		return errors.New("missing target path")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_util_test.go

    	os.Exit(m.Run())
    }
    
    func makeTestPVWithMountOptions(name string, sizeGig int, driverName, volID string, mountOptions []string) *api.PersistentVolume {
    	pv := makeTestPV(name, sizeGig, driverName, volID)
    	pv.Spec.MountOptions = mountOptions
    	return pv
    }
    
    func makeTestPV(name string, sizeGig int, driverName, volID string) *api.PersistentVolume {
    	return &api.PersistentVolume{
    		ObjectMeta: meta.ObjectMeta{
    			Name: name,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_attacher_test.go

    	testCases := []struct {
    		name         string
    		volID        string
    		attachID     string
    		shouldFail   bool
    		reactor      func(action core.Action) (handled bool, ret runtime.Object, err error)
    		watchTimeout time.Duration
    	}{
    		{name: "normal test", volID: "vol-001", attachID: getAttachmentName("vol-001", testDriver, nodeName)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_attacher.go

    	if len(parts) != 2 {
    		klog.Error(log("detacher.Detach insufficient info encoded in volumeName"))
    		return errors.New("volumeName missing expected data")
    	}
    
    	driverName := parts[0]
    	volID = parts[1]
    	attachID = getAttachmentName(volID, driverName, string(nodeName))
    
    	if err := c.k8s.StorageV1().VolumeAttachments().Delete(context.TODO(), attachID, metav1.DeleteOptions{}); err != nil {
    		if apierrors.IsNotFound(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  6. pkg/volume/csi/fake/fake_client.go

    	return f.nodePublishedVolumes
    }
    
    // AddNodePublishedVolume adds specified volume to nodePublishedVolumes
    func (f *NodeClient) AddNodePublishedVolume(volID, deviceMountPath string, volumeContext map[string]string) {
    	f.nodePublishedVolumes[volID] = CSIVolume{
    		Path:          deviceMountPath,
    		VolumeContext: volumeContext,
    	}
    }
    
    // GetNodeStagedVolumes returns node staged volumes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 16K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_mounter.go

    func (c *csiMountMgr) TearDown() error {
    	return c.TearDownAt(c.GetPath())
    }
    func (c *csiMountMgr) TearDownAt(dir string) error {
    	klog.V(4).Infof(log("Unmounter.TearDownAt(%s)", dir))
    
    	volID := c.volumeID
    	csi, err := c.csiClientGetter.Get()
    	if err != nil {
    		// Treat the absence of the CSI driver as a transient error
    		// See https://github.com/kubernetes/kubernetes/issues/120268
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_plugin_test.go

    		}
    
    		volHandle := spec.PersistentVolume.Spec.CSI.VolumeHandle
    		if volHandle != tc.data[volDataKey.volHandle] {
    			t.Errorf("expected volID %s, got volID %s", tc.data[volDataKey.volHandle], volHandle)
    		}
    
    		if spec.Name() != tc.specVolID {
    			t.Errorf("Unexpected spec name %s", spec.Name())
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top