From d5c571c5ac67360206d135fa29e0687e4bb0329e Mon Sep 17 00:00:00 2001 From: Valeriy Khorunzhin Date: Tue, 12 Nov 2024 11:44:36 +0300 Subject: [PATCH] fix(vmbda): fix block device attached count condition processing (#517) Fix VirtualMachineBlockDeviceAttachement block device attached count condition processing. Signed-off-by: Valeriy Khorunzhin --- .../pkg/controller/vmbda/internal/block_device_limiter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/virtualization-artifact/pkg/controller/vmbda/internal/block_device_limiter.go b/images/virtualization-artifact/pkg/controller/vmbda/internal/block_device_limiter.go index 43b921b39..42ac97258 100644 --- a/images/virtualization-artifact/pkg/controller/vmbda/internal/block_device_limiter.go +++ b/images/virtualization-artifact/pkg/controller/vmbda/internal/block_device_limiter.go @@ -52,7 +52,7 @@ func (h *BlockDeviceLimiter) Handle(ctx context.Context, vmbda *virtv2.VirtualMa return reconcile.Result{}, nil } - if blockDeviceAttachedCount > common.VmBlockDeviceAttachedLimit { + if blockDeviceAttachedCount <= common.VmBlockDeviceAttachedLimit { cb. Status(metav1.ConditionTrue). Reason(vmbdacondition.CapacityAvailable).