mirror of
https://github.com/rancher/k3k.git
synced 2026-08-23 22:36:17 +00:00
addressed comments
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -147,7 +146,7 @@ func resolveServerHost(restConfigHost, override string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return strings.Split(u.Host, ":")[0], nil
|
||||
return u.Hostname(), nil
|
||||
}
|
||||
|
||||
func writeKubeconfigFile(cluster *v1beta1.Cluster, kubeconfig *clientcmdapi.Config, configName string) error {
|
||||
|
||||
Reference in New Issue
Block a user