mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-02 01:56:46 +09:00
Each GPUClaim has a usage record of its own, so the virt-launcher pod of a VMI with claim references would report the same GPUs a second time. The units the VMI's attached claims hold are subtracted after the resources annotation is merged, since that annotation may name the GPU too; names the claims do not cover, such as a NIC next to the GPU, stay reported. Only a pod the VMI lists in status.activePods is covered, since whoever creates a pod sets its owner reference. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>