Files
charts/clustertool/pkg/gencmd/kubeconfig.go
2024-10-17 12:56:56 +02:00

13 lines
332 B
Go

package gencmd
import (
"github.com/truecharts/public/clustertool/embed"
"github.com/truecharts/public/clustertool/pkg/helper"
)
func GenKubeConfig(node string) string {
talosPath := embed.GetTalosExec()
strout := talosPath + " kubeconfig --talosconfig " + helper.TalosConfigFile + " -n " + node + " --force"
return strout
}