diff --git a/images/virtualization-artifact/pkg/controller/vd/internal/resizing.go b/images/virtualization-artifact/pkg/controller/vd/internal/resizing.go index 4d27642c88..0e92af805a 100644 --- a/images/virtualization-artifact/pkg/controller/vd/internal/resizing.go +++ b/images/virtualization-artifact/pkg/controller/vd/internal/resizing.go @@ -163,6 +163,7 @@ func (h ResizingHandler) Handle(ctx context.Context, vd *virtv2.VirtualDisk) (re // Expected disk size is NOT GREATER THAN expected pvc size: no resize needed since downsizing is not possible, and resizing to the same value makes no sense. switch condition.Reason { + case vdcondition.InProgress.String(), vdcondition.Resized.String(): cb. Status(metav1.ConditionFalse). diff --git a/images/virtualization-artifact/pkg/controller/vmsnapshot/internal/life_cycle_test.go b/images/virtualization-artifact/pkg/controller/vmsnapshot/internal/life_cycle_test.go index f48af5c79e..f80b101e26 100644 --- a/images/virtualization-artifact/pkg/controller/vmsnapshot/internal/life_cycle_test.go +++ b/images/virtualization-artifact/pkg/controller/vmsnapshot/internal/life_cycle_test.go @@ -53,7 +53,7 @@ var _ = Describe("LifeCycle handler", func() { Status: metav1.ConditionTrue, }, { - Type: vdcondition.Resized.String(), + Type: vdcondition.ResizingType.String(), Status: metav1.ConditionTrue, Reason: vdcondition.Resized.String(), }, @@ -198,7 +198,7 @@ var _ = Describe("LifeCycle handler", func() { It("The virtual disk is the process of Resizing", func() { snapshotter.GetVirtualDiskFunc = func(_ context.Context, _, _ string) (*virtv2.VirtualDisk, error) { - cb := conditions.NewConditionBuilder(vdcondition.Resized). + cb := conditions.NewConditionBuilder(vdcondition.ResizingType). Generation(vd.Generation). Status(metav1.ConditionFalse). Reason(vdcondition.InProgress)