Turn stale ClientConfig error into warning

pull/7688/head
Thomas Stromberg 2020-04-15 11:25:14 -07:00
parent cd7d4b8157
commit 97dd0a31f1
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ func (k *Bootstrapper) client(ip string, port int) (*kubernetes.Clientset, error
endpoint := fmt.Sprintf("https://%s", net.JoinHostPort(ip, strconv.Itoa(port))) endpoint := fmt.Sprintf("https://%s", net.JoinHostPort(ip, strconv.Itoa(port)))
if cc.Host != endpoint { if cc.Host != endpoint {
glog.Errorf("Overriding stale ClientConfig host %s with %s", cc.Host, endpoint) glog.Warningf("Overriding stale ClientConfig host %s with %s", cc.Host, endpoint)
cc.Host = endpoint cc.Host = endpoint
} }
c, err := kubernetes.NewForConfig(cc) c, err := kubernetes.NewForConfig(cc)