Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
Signed-off-by: dmitry.lopatin <[email protected]>
  • Loading branch information
LopatinDmitr committed Oct 13, 2024
1 parent 2023ea4 commit 8e5b4f1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e5b4f1

Please sign in to comment.