fix(clustertool): ensure kubeconfig is created with force true by default

This commit is contained in:
Kjeld Schouten
2024-11-09 21:11:45 +01:00
parent 55284f8567
commit d1bb074680
3 changed files with 4 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ func RunApply(kubeconfig bool, node string, extraArgs []string) {
gencmd.ExecCmds(taloscmds, true)
if kubeconfig {
kubeconfigcmds := gencmd.GenPlain("kubeconfig", helper.TalEnv["VIP_IP"], extraArgs)
kubeconfigcmds := gencmd.GenPlain("kubeconfig", helper.TalEnv["VIP_IP"], []string{"-f"})
gencmd.ExecCmd(kubeconfigcmds[0])
}

View File

@@ -55,7 +55,7 @@ var upgrade = &cobra.Command{
gencmd.ExecCmd(kubeUpgradeCmd)
log.Info().Msg("(re)Loading KubeConfig)")
kubeconfigcmds := gencmd.GenPlain("health", helper.TalEnv["VIP_IP"], extraArgs)
kubeconfigcmds := gencmd.GenPlain("health", helper.TalEnv["VIP_IP"], []string{"-f"})
gencmd.ExecCmd(kubeconfigcmds[0])
},