fix(clustertool): remove undue verbosity from status check

This commit is contained in:
Kjeld Schouten
2024-10-26 14:28:03 +02:00
parent 4fdae0cb4f
commit a1112c5a03
+1 -1
View File
@@ -53,7 +53,7 @@ func CheckStatus(node string) (string, error) {
argsslice := append(baseStatusCMD(node), "-o", "jsonpath={.spec.stage}")
out, err := helper.RunCommand(argsslice, true)
if err != nil {
log.Warn().Err(err).Str("output", string(out)).Msg("Error running command, checking for certificate issue")
log.Debug().Err(err).Str("output", string(out)).Msg("Error running command, checking for certificate issue")
if strings.Contains(string(out), "certificate signed by unknown authority") {
log.Debug().Msg("Certificate signed by unknown authority; retrying with insecure flag")
argsslice = append(baseStatusCMD(node), "-o", "jsonpath={.spec.stage}", "--insecure")