mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-07 06:40:10 +00:00
conform to repo conventions
Signed-off-by: Brian Downs <brian.downs@gmail.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user