Skip to content

Commit

Permalink
fix: support bundle daemonset condition
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <jack.yu@suse.com>
  • Loading branch information
Yu-Jack authored and c3y1huang committed Jan 2, 2024
1 parent 4c92b3e commit a242356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (m *SupportBundleManager) getAgentPodsCreatedBy(daemonSet *appsv1.DaemonSet
}

// Check if all desired Pods have been scheduled
if len(filteredPods) != 0 && len(pods.Items) == int(daemonSet.Status.DesiredNumberScheduled) {
if len(filteredPods) != 0 && len(filteredPods) == int(daemonSet.Status.DesiredNumberScheduled) {
return &v1.PodList{Items: filteredPods}, nil
}

Expand Down

0 comments on commit a242356

Please sign in to comment.