Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CurrentNodeName (0.15 sec)

  1. pkg/kubelet/cloudresource/cloud_request_manager.go

    func (m *cloudResourceSyncManager) getNodeAddresses() ([]v1.NodeAddress, error) {
    	// TODO(roberthbailey): Can we do this without having credentials to talk to
    	// the cloud provider?
    	// TODO(justinsb): We can if CurrentNodeName() was actually CurrentNode() and
    	// returned an interface.
    	// TODO: If IP addresses couldn't be fetched from the cloud provider, should
    	// kubelet fallback on the other methods for getting the IP below?
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 05 18:29:23 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  2. cmd/kubelet/app/server.go

    		return types.NodeName(hostname), nil
    	}
    
    	instances, ok := cloud.Instances()
    	if !ok {
    		return "", fmt.Errorf("failed to get instances from cloud provider")
    	}
    
    	nodeName, err := instances.CurrentNodeName(context.TODO(), hostname)
    	if err != nil {
    		return "", fmt.Errorf("error fetching current node name from cloud provider: %w", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
Back to top