fix(clustertool): ensure kubeconfig is created with force true by default
This commit is contained in:
@@ -109,7 +109,7 @@ func RunApply(kubeconfig bool, node string, extraArgs []string) {
|
|||||||
gencmd.ExecCmds(taloscmds, true)
|
gencmd.ExecCmds(taloscmds, true)
|
||||||
|
|
||||||
if kubeconfig {
|
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])
|
gencmd.ExecCmd(kubeconfigcmds[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ var upgrade = &cobra.Command{
|
|||||||
gencmd.ExecCmd(kubeUpgradeCmd)
|
gencmd.ExecCmd(kubeUpgradeCmd)
|
||||||
|
|
||||||
log.Info().Msg("(re)Loading KubeConfig)")
|
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])
|
gencmd.ExecCmd(kubeconfigcmds[0])
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,7 +55,8 @@ func RunBootstrap(args []string) {
|
|||||||
|
|
||||||
log.Info().Msgf("Bootstrap: Configuring kubeconfig/kubectl for VIP: %v", helper.TalEnv["VIP_IP"])
|
log.Info().Msgf("Bootstrap: Configuring kubeconfig/kubectl for VIP: %v", helper.TalEnv["VIP_IP"])
|
||||||
// Ensure kubeconfig is loaded
|
// Ensure kubeconfig is loaded
|
||||||
kubeconfigcmds := GenPlain("kubeconfig", helper.TalEnv["VIP_IP"], extraArgs)
|
|
||||||
|
kubeconfigcmds := GenPlain("kubeconfig", helper.TalEnv["VIP_IP"], []string{"-f"})
|
||||||
ExecCmd(kubeconfigcmds[0])
|
ExecCmd(kubeconfigcmds[0])
|
||||||
|
|
||||||
// Desired pod names
|
// Desired pod names
|
||||||
|
|||||||
Reference in New Issue
Block a user