fix(clustertool): fix kubeconfig not boing loaded correctly and put some more silence into healthchecks

This commit is contained in:
Kjeld Schouten
2024-11-07 23:51:25 +01:00
parent 2a2519e28a
commit 5e89c6213e
3 changed files with 17 additions and 10 deletions
+2 -2
View File
@@ -53,9 +53,9 @@ func RunBootstrap(args []string) {
log.Info().Msgf("Bootstrap: waiting for VIP %v to come online...", helper.TalEnv["VIP_IP"])
nodestatus.WaitForHealth(helper.TalEnv["VIP_IP"], []string{"running"})
log.Info().Msgf("Bootstrap: Configuring 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
kubeconfigcmds := GenPlain("health", helper.TalEnv["VIP_IP"], extraArgs)
kubeconfigcmds := GenPlain("kubeconfig", helper.TalEnv["VIP_IP"], extraArgs)
ExecCmd(kubeconfigcmds[0])
// Desired pod names