Commit bb8e5374 authored by Brian Downs's avatar Brian Downs

conform to repo conventions

parent 898cbeb9
...@@ -80,7 +80,7 @@ func getNodeNamedCrt(nodeName, nodeIP, nodePasswordFile string) HTTPRequester { ...@@ -80,7 +80,7 @@ func getNodeNamedCrt(nodeName, nodeIP, nodePasswordFile string) HTTPRequester {
return nil, err return nil, err
} }
req.Header.Set(version.Program+"-Node-Password", nodePassword) 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) resp, err := client.Do(req)
if err != nil { if err != nil {
......
...@@ -142,7 +142,7 @@ func servingKubeletCert(server *config.Control, keyFile string) http.Handler { ...@@ -142,7 +142,7 @@ func servingKubeletCert(server *config.Control, keyFile string) http.Handler {
} }
ips := []net.IP{net.ParseIP("127.0.0.1")} 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)) ips = append(ips, net.ParseIP(nodeIP))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment