mirror of https://github.com/k3s-io/k3s
conform to repo conventions
Signed-off-by: Brian Downs <brian.downs@gmail.com>pull/2199/head
parent
898cbeb9b6
commit
bb8e5374ea
|
@ -80,7 +80,7 @@ func getNodeNamedCrt(nodeName, nodeIP, nodePasswordFile string) HTTPRequester {
|
|||
return nil, err
|
||||
}
|
||||
req.Header.Set(version.Program+"-Node-Password", nodePassword)
|
||||
req.Header.Set("X-"+version.Program+"-NODE-IP", nodeIP)
|
||||
req.Header.Set(version.Program+"-Node-IP", nodeIP)
|
||||
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
|
|
|
@ -142,7 +142,7 @@ func servingKubeletCert(server *config.Control, keyFile string) http.Handler {
|
|||
}
|
||||
|
||||
ips := []net.IP{net.ParseIP("127.0.0.1")}
|
||||
if nodeIP := req.Header.Get("X-" + version.Program + "-NODE-IP"); nodeIP != "" {
|
||||
if nodeIP := req.Header.Get(version.Program + "-Node-IP"); nodeIP != "" {
|
||||
ips = append(ips, net.ParseIP(nodeIP))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue