Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reportMultiAttachError (0.2 sec)

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

    		}
    	}
    }
    
    // reportMultiAttachError sends events and logs situation that a volume that
    // should be attached to a node is already attached to different node(s).
    func (rc *reconciler) reportMultiAttachError(logger klog.Logger, volumeToAttach cache.VolumeToAttach, nodes []types.NodeName) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 21:02:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    				}
    			}
    		}
    		// Act
    		logger, _ := ktesting.NewTestContext(t)
    		volumes := dsw.GetVolumesToAttach()
    		for _, vol := range volumes {
    			if vol.NodeName == "node1" {
    				rc.(*reconciler).reportMultiAttachError(logger, vol, nodes)
    			}
    		}
    
    		// Assert
    		close(fakeRecorder.Events)
    		index := 0
    		for event := range fakeRecorder.Events {
    			if len(test.expectedEvents) < index {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
Back to top