Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2025-03-19 23:49:08 +01:00
parent adc755a455
commit 3284d24ae2
3 changed files with 28 additions and 21 deletions

View File

@@ -30,8 +30,8 @@ var GetKubeConfigCMD = cli.Command{
edgeVPNClient.NewClient(edgeVPNClient.WithHost(c.String("api"))))
str, _ := cc.Get("kubeconfig", "control-plane")
b, _ := base64.RawURLEncoding.DecodeString(str)
masterIP, _ := cc.Get("control-plane", "ip")
fmt.Println(strings.ReplaceAll(string(b), "127.0.0.1", masterIP))
cpIP, _ := cc.Get("control-plane", "ip")
fmt.Println(strings.ReplaceAll(string(b), "127.0.0.1", cpIP))
return nil
},
}