Skip to content

Commit

Permalink
fix(clustertool): improve pod-status checking message and behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Oct 26, 2024
1 parent d33656b commit 108c39d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clustertool/pkg/kubectlcmds/checkstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 108c39d

Please sign in to comment.