From 45552d14623037f45b2f412c86f4c1cf1dbaa248 Mon Sep 17 00:00:00 2001 From: "dmitry.lopatin" Date: Sat, 12 Oct 2024 22:46:57 +0300 Subject: [PATCH] add logs Signed-off-by: dmitry.lopatin --- .../pkg/controller/vd/internal/inuse.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go b/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go index fabee777b..4a8bf5cca 100644 --- a/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go +++ b/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go @@ -108,9 +108,17 @@ func (h InUseHandler) Handle(ctx context.Context, vd *virtv2.VirtualDisk) (recon if inUsed { inUseCondition.Status = metav1.ConditionTrue inUseCondition.Reason = vdcondition.InUseForCreateImage + println("") + println("") + println("dlopatin inUseCondition.Reason = vdcondition.InUseForCreateImage") + println("") } else if inUseCondition.Reason == vdcondition.InUseForCreateImage { inUseCondition.Status = metav1.ConditionFalse inUseCondition.Reason = vdcondition.NotUse + println("") + println("") + println("dlopatin inUseCondition.Reason = vdcondition.NotUse") + println("") } service.SetCondition(inUseCondition, &vd.Status.Conditions)