Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UpdateNodeStatusForNode (0.33 sec)

  1. pkg/controller/volume/attachdetach/statusupdater/fake_node_status_updater.go

    	if fnsu.returnError {
    		return fmt.Errorf("fake error on update node status")
    	}
    
    	return nil
    }
    
    func (fnsu *fakeNodeStatusUpdater) UpdateNodeStatusForNode(logger klog.Logger, nodeName types.NodeName) error {
    	if fnsu.returnError {
    		return fmt.Errorf("fake error on update node status")
    	}
    
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/statusupdater/node_status_updater.go

    	// Gets a list of node statuses that should be updated from the actual state
    	// of the world and updates them.
    	UpdateNodeStatuses(logger klog.Logger) error
    	// Update any pending status change for the given node
    	UpdateNodeStatusForNode(logger klog.Logger, nodeName types.NodeName) error
    }
    
    // NewNodeStatusUpdater returns a new instance of NodeStatusUpdater.
    func NewNodeStatusUpdater(
    	kubeClient clientset.Interface,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/reconciler/reconciler.go

    					"err", err)
    			}
    
    			// Update Node Status to indicate volume is no longer safe to mount.
    			err = rc.nodeStatusUpdater.UpdateNodeStatusForNode(logger, attachedVolume.NodeName)
    			if err != nil {
    				// Skip detaching this volume if unable to update node status
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 21:02:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/statusupdater/node_status_updater_test.go

    func TestNodeStatusUpdater_UpdateNodeStatusForNode(t *testing.T) {
    	ctx := context.Background()
    	logger := klog.FromContext(ctx)
    	asw, fakeKubeClient, nsu := setupNodeStatusUpdate(logger, t)
    
    	err := nsu.UpdateNodeStatusForNode(logger, "testnode-1")
    	if err != nil {
    		t.Fatalf("UpdateNodeStatuses failed. Expected: <no error> Actual: <%v>", err)
    	}
    
    	needToReport := asw.GetVolumesToReportAttached(logger)
    	if len(needToReport) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top