From a2423562835349dbbc5b2df235e7f45ed1041a3e Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Tue, 2 Jan 2024 11:42:08 +0800 Subject: [PATCH] fix: support bundle daemonset condition Signed-off-by: Jack Yu --- pkg/manager/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manager/manager.go b/pkg/manager/manager.go index e413d9c83..f15b1ea2e 100644 --- a/pkg/manager/manager.go +++ b/pkg/manager/manager.go @@ -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 }