From b555e6b2a2497eb77f55a82247da90c59c6ded3e Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Wed, 4 Dec 2024 14:03:38 -0500 Subject: [PATCH] Fix volume expansion offline --- test/e2e/storage/testsuites/volume_expand.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/e2e/storage/testsuites/volume_expand.go b/test/e2e/storage/testsuites/volume_expand.go index 8f64ec4bd49..626fbee0f94 100644 --- a/test/e2e/storage/testsuites/volume_expand.go +++ b/test/e2e/storage/testsuites/volume_expand.go @@ -408,9 +408,11 @@ func WaitForPendingFSResizeCondition(ctx context.Context, pvc *v1.PersistentVolu if len(inProgressConditions) == 0 { return true, nil } - conditionType := inProgressConditions[0].Type - if conditionType == v1.PersistentVolumeClaimFileSystemResizePending { - return true, nil + for _, condition := range inProgressConditions { + conditionType := condition.Type + if conditionType == v1.PersistentVolumeClaimFileSystemResizePending { + return true, nil + } } return false, nil })