func GetClusterNicknameFromURL(apiServerLocation string) (string, error) {
	u, err := url.Parse(apiServerLocation)
	if err != nil {
		return "", err
	}
	hostPort := netutil.CanonicalAddr(u)

	// we need a character other than "." to avoid conflicts with.  replace with '-'
	return strings.Replace(hostPort, ".", "-", -1), nil
}
// GetClusterNicknameFromURL returns host:port of the apiServerLocation, with .'s replaced by -'s
GetClusterNicknameFromURL returns host:port of the apiServerLocation, with .'s replaced by -'s
// GetClusterNicknameFromURL returns host : port of the apiServerLocation with . ' s replaced by - ' s
func GetClusterNicknameFromURL(apiServerLocation string) (string, error) {
	u, err := url.Parse(apiServerLocation)
	if err != nil {
		return "", err
	}
	hostPort := netutil.CanonicalAddr(u)
	return strings.Replace(hostPort, ".", "-", -1), nil
}
func GetClusterNicknameFromURL ( apiServerLocation string ) ( string , error ) { u , err := url . Parse ( apiServerLocation ) if err != nil { return " " , err } hostPort := netutil . CanonicalAddr ( u ) return strings . Replace ( hostPort , " " , " " , - 1 ) , nil }
GetClusterNicknameFromURL returns host:port of the apiServerLocation, with .
GetClusterNicknameFromURL returns host : port of the apiServerLocation with .
// we need a character other than "." to avoid conflicts with.  replace with '-'