Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for GetVolumeName (0.27 sec)

  1. pkg/volume/iscsi/iscsi.go

    	plugin.host = host
    	plugin.targetLocks = keymutex.NewHashed(0)
    	return nil
    }
    
    func (plugin *iscsiPlugin) GetPluginName() string {
    	return iscsiPluginName
    }
    
    func (plugin *iscsiPlugin) GetVolumeName(spec *volume.Spec) (string, error) {
    	tp, _, iqn, lun, err := getISCSITargetInfo(spec)
    	if err != nil {
    		return "", err
    	}
    
    	return fmt.Sprintf("%v:%v:%v", tp, iqn, lun), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. pkg/volume/util/operationexecutor/operation_generator.go

    		}
    
    		volumeName, err =
    			attachableVolumePlugin.GetVolumeName(volumeToDetach.VolumeSpec)
    		if err != nil {
    			return volumetypes.GeneratedOperations{}, volumeToDetach.GenerateErrorDetailed("DetachVolume.GetVolumeName failed", err)
    		}
    	} else {
    		// Get attacher plugin and the volumeName by splitting the volume unique name in case
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			_, err := csiAttacher.k8s.StorageV1().VolumeAttachments().Create(context.TODO(), attachment, metav1.CreateOptions{})
    			if err != nil {
    				t.Fatalf("failed to attach: %v", err)
    			}
    			volumeName, err := plug.GetVolumeName(spec)
    			if err != nil {
    				t.Errorf("test case %s failed: %v", tc.name, err)
    			}
    
    			err = csiAttacher.Detach(volumeName, types.NodeName(nodeName))
    			if tc.shouldFail && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
Back to top