Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetAttachedVolumesForNode (0.21 sec)

  1. pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go

    	if exists {
    		t.Fatalf("AddVolumeNode_Positive_NewVolumeNewNodeWithFalseAttached failed. Actual: <node %q exist> Expect: <node does not exist in the reportedAsAttached map", nodeName)
    	}
    
    	volumesForNode := asw.GetAttachedVolumesForNode(nodeName)
    	if len(volumesForNode) != 1 {
    		t.Fatalf("len(attachedVolumes) Expected: <1> Actual: <%v>", len(volumesForNode))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 66.1K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/cache/actual_state_of_world.go

    	GetAttachedVolumes() []AttachedVolume
    
    	// GetAttachedVolumesForNode generates and returns a list of volumes that added to
    	// the specified node reflecting which volumes are/or might be attached to that node
    	// based on the current actual state of the world. This function is currently used by
    	// attach_detach_controller to process VolumeInUse
    	GetAttachedVolumesForNode(nodeName types.NodeName) []AttachedVolume
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    		nodeName := types.NodeName(node.Name)
    		inUseVolumes := sets.New(node.Status.VolumesInUse...)
    		allAttachedVolumes := map[v1.UniqueVolumeName]cache.AttachedVolume{}
    		for _, v := range adc.actualStateOfWorld.GetAttachedVolumesForNode(nodeName) {
    			allAttachedVolumes[v.VolumeName] = v
    		}
    
    		for _, attachedVolume := range node.Status.VolumesAttached {
    			attachedState := adc.actualStateOfWorld.GetAttachState(attachedVolume.Name, nodeName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top