From ee8f11dd6e8fd0794950cd2f993d32eb2d11d813 Mon Sep 17 00:00:00 2001 From: Dexter Yan Date: Wed, 6 Nov 2024 13:50:17 +1300 Subject: [PATCH] improve ds wait check --- pkg/supportbundle/collect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/supportbundle/collect.go b/pkg/supportbundle/collect.go index f572c0f45..201deae1c 100644 --- a/pkg/supportbundle/collect.go +++ b/pkg/supportbundle/collect.go @@ -602,7 +602,7 @@ func waitForDS(ctx context.Context, clientset kubernetes.Interface, ds *appsv1.D if !ok { continue } - if dsEvent.Status.NumberReady > 0 { + if dsEvent.Status.NumberReady > 0 && dsEvent.Status.DesiredNumberScheduled == dsEvent.Status.NumberReady { return nil } }