Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetDetachedVolumes (0.59 sec)

  1. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    		time.Sleep(time.Second * 1) // Wait for a second
    		for _, volumeList := range testPlugin.GetAttachedVolumes() {
    			attachedVolumesNum += len(volumeList)
    		}
    		for _, volumeList := range testPlugin.GetDetachedVolumes() {
    			detachedVolumesNum += len(volumeList)
    		}
    
    		// All the "extra pods" should result in volume to be attached, the pods all share one volume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    	for nodeName, volumeList := range plugin.attachedVolumeMap {
    		ret[nodeName] = make([]string, len(volumeList))
    		copy(ret[nodeName], volumeList)
    	}
    	return ret
    }
    
    func (plugin *TestPlugin) GetDetachedVolumes() map[string][]string {
    	plugin.pluginLock.RLock()
    	defer plugin.pluginLock.RUnlock()
    	ret := make(map[string][]string)
    	for nodeName, volumeList := range plugin.detachedVolumeMap {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top