Skip to content

Commit

Permalink
add pod ready
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterYan committed Nov 6, 2024
1 parent f87e9c4 commit 147fb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/supportbundle/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func waitForPodRunning(ctx context.Context, clientset kubernetes.Interface, pod
}
for _, containerStatus := range podEvent.Status.ContainerStatuses {
if containerStatus.Name == "remote-collector" {
if containerStatus.State.Running != nil && containerStatus.State.Terminated == nil {
if containerStatus.State.Running != nil && containerStatus.State.Terminated == nil && containerStatus.Ready {
return nil
}
}
Expand Down

0 comments on commit 147fb0a

Please sign in to comment.