fix(clustertool): improve pod-status checking message and behavior

This commit is contained in:
Kjeld Schouten
2024-10-26 14:25:18 +02:00
parent d33656b85b
commit 108c39dd6e
+4 -1
View File
@@ -44,7 +44,10 @@ func CheckStatus(requiredPods []string, excludePod []string, timeout time.Durati
// Get pods in all namespaces
pods, err := clientset.CoreV1().Pods("").List(context.TODO(), metav1.ListOptions{})
if err != nil {
log.Error().Err(err).Msg("Error listing pods")
log.Debug().Err(err).Msg("Error listing pods")
log.Warn().Msg("Cannot recieve pods (yet), waiting before checking again")
time.Sleep(5 * time.Second)
continue
}
// Check if the required pods are both present and running