mirror of https://github.com/k3s-io/k3s
Merge pull request #71126 from rosti/warn-api-bind-override
kubeadm: Warn on API server bind address overridepull/58/head
commit
7ff49c99d3
|
@ -19,6 +19,7 @@ package config
|
|||
import (
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
@ -175,5 +176,8 @@ func ChooseAPIServerBindAddress(bindAddress net.IP) (net.IP, error) {
|
|||
}
|
||||
return nil, err
|
||||
}
|
||||
if bindAddress != nil && !bindAddress.IsUnspecified() && !reflect.DeepEqual(ip, bindAddress) {
|
||||
klog.Warningf("WARNING: overriding requested API server bind address: requested %q, actual %q", bindAddress, ip)
|
||||
}
|
||||
return ip, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue