Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for updateNodeStatus (0.14 sec)

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

    		logger.V(2).Info("Error retrieving nodes from node lister", "err", err)
    		nsu.actualStateOfWorld.SetNodeStatusUpdateNeeded(logger, nodeName)
    		return err
    	}
    
    	err = nsu.updateNodeStatus(logger, nodeName, nodeObj, attachedVolumes)
    	if errors.IsNotFound(err) {
    		// If node does not exist, its status cannot be updated.
    		// Do nothing so that there is no retry until node is created.
    		logger.V(2).Info(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    						{Type: v1.NodeHostName, Address: testKubeletHostname},
    					},
    					Images: expectedImageList,
    				},
    			}
    
    			kubelet.updateRuntimeUp()
    			assert.NoError(t, kubelet.updateNodeStatus(ctx))
    			actions := kubeClient.Actions()
    			require.Len(t, actions, 2)
    			require.True(t, actions[1].Matches("patch", "nodes"))
    			require.Equal(t, actions[1].GetSubresource(), "status")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_node_status.go

    		kl.registerWithAPIServer()
    	}
    	if err := kl.updateNodeStatus(ctx); err != nil {
    		klog.ErrorS(err, "Unable to update node status")
    	}
    }
    
    // updateNodeStatus updates node status to master with retries if there is any
    // change or enough time passed from the last sync.
    func (kl *Kubelet) updateNodeStatus(ctx context.Context) error {
    	klog.V(5).InfoS("Updating node status")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    	reconciliationLoopFunc(ctx)
    	// Right before detach operation is performed, the volume will be first removed from being reported
    	// as attached on node status (RemoveVolumeFromReportAsAttached). After UpdateNodeStatus operation which is expected to fail,
    	// controller then added the volume back as attached.
    	// verifyVolumeReportedAsAttachedToNode will check volume is in the list of volume attached that needs to be updated
    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