code: 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?
  	instances, ok := m.cloud.Instances()
  	if !ok {
  		return nil, fmt.Errorf("failed to get instances from cloud provider")
  	}
  	return instances.NodeAddresses(context.TODO(), m.nodeName)
  }
docs: // getNodeAddresses calls the cloud provider to get a current list of node addresses.