code: func getAPIEndpoint(data map[string]string, nodeName string, apiEndpoint *kubeadmapi.APIEndpoint) error {
  	// gets the ClusterStatus from kubeadm-config
  	clusterStatus, err := UnmarshalClusterStatus(data)
  	if err != nil {
  		return err
  	}
  
  	// gets the APIEndpoint for the current machine from the ClusterStatus
  	e, ok := clusterStatus.APIEndpoints[nodeName]
  	if !ok {
  		return errors.New("failed to get APIEndpoint information for this node")
  	}
  
  	apiEndpoint.AdvertiseAddress = e.AdvertiseAddress
  	apiEndpoint.BindPort = e.BindPort
  	return nil
  }
docs: // getAPIEndpoint returns the APIEndpoint for the current node