func (p *provider) GetAPIServerInternalEndpoint(cluster string) (string, error) {
	// locate the node that hosts this
	allNodes, err := p.ListNodes(cluster)
	if err != nil {
		return "", errors.Wrap(err, "failed to list nodes")
	}
	n, err := nodeutils.APIServerEndpointNode(allNodes)
	if err != nil {
		return "", errors.Wrap(err, "failed to get apiserver endpoint")
	}
	// NOTE: we're using the nodes's hostnames which are their names
	return net.JoinHostPort(n.String(), fmt.Sprintf("%d", common.APIServerInternalPort)), nil
}
// GetAPIServerInternalEndpoint is part of the providers.Provider interface
GetAPIServerInternalEndpoint is part of the providers.Provider interface
// GetAPIServerInternalEndpoint is part of the providers . Provider interface
func (p *provider) GetAPIServerInternalEndpoint(cluster string) (string, error) {
	allNodes, err := p.ListNodes(cluster)
	if err != nil {
		return "", errors.Wrap(err, "failed to list nodes")
	}
	n, err := nodeutils.APIServerEndpointNode(allNodes)
	if err != nil {
		return "", errors.Wrap(err, "failed to get apiserver endpoint")
	}
	return net.JoinHostPort(n.String(), fmt.Sprintf("%d", common.APIServerInternalPort)), nil
}
func ( p * provider ) GetAPIServerInternalEndpoint ( cluster string ) ( string , error ) { allNodes , err := p . ListNodes ( cluster ) if err != nil { return " " , errors . Wrap ( err , " " ) } n , err := nodeutils . APIServerEndpointNode ( allNodes ) if err != nil { return " " , errors . Wrap ( err , " " ) } return net . JoinHostPort ( n . String ( ) , fmt . Sprintf ( " " , common . APIServerInternalPort ) ) , nil }
GetAPIServerInternalEndpoint is part of the providers.Provider interface
GetAPIServerInternalEndpoint is part of the providers . Provider interface
// locate the node that hosts this // NOTE: we're using the nodes's hostnames which are their names