Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
rphillips committed Apr 3, 2024
1 parent 49a7168 commit c6ee978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/monitortests/node/kubeletselinuxlabels/monitortest.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ func (lw *selinuxLabelWatcher) allPodsStarted(ctx context.Context) (bool, error)
klog.Errorf("Error checking for pods: %s, %s", lw.namespaceName, err.Error())
return false, err
}
for _, val := range pods.Items {
if !exutil.CheckPodIsReady(val) {
return false, fmt.Errorf("pod %s/%s is not ready: %+v", val.Namespace, val.Name, val.Status.ContainerStatuses)
for _, pod := range pods.Items {
if !exutil.CheckPodIsRunning(pod) {
return false, fmt.Errorf("pod %s/%s is not running: %+v", pod.Namespace, pod.Name, pod.Status.ContainerStatuses)
}
}

Expand Down

0 comments on commit c6ee978

Please sign in to comment.