We still can't rely on first condition being fs-expansion pending condition

Also, we don't really need this check here, because code above already
checks for fs expansion
This commit is contained in:
Hemant Kumar 2025-01-14 12:54:39 -05:00
parent 570f550189
commit 0bf3f03dda

View File

@ -181,11 +181,6 @@ var _ = utils.SIGDescribe("CSI Mock volume expansion", func() {
framework.ExpectNoError(err, "While waiting for pvc to have fs resizing condition")
pvc = npvc
inProgressConditions := pvc.Status.Conditions
if len(inProgressConditions) > 0 {
gomega.Expect(inProgressConditions[0].Type).To(gomega.Equal(v1.PersistentVolumeClaimFileSystemResizePending), "pvc must have fs resizing condition")
}
ginkgo.By("Deleting the previously created pod")
if test.simulatedCSIDriverError == expansionFailedMissingStagingPath {
e2epod.DeletePodOrFail(ctx, m.cs, pod.Namespace, pod.Name)