Don't round, CPU fractions are supported.

This commit is contained in:
Michael Lipp 2023-08-24 13:24:32 +02:00
parent 7e094e720b
commit 70ecc39466

View file

@ -99,7 +99,7 @@ spec:
<#if reconciler.cpuOvercommit??> <#if reconciler.cpuOvercommit??>
<#assign factor = reconciler.cpuOvercommit * 1.0 /> <#assign factor = reconciler.cpuOvercommit * 1.0 />
</#if> </#if>
cpu: ${ (parseQuantity(cr.spec.vm.currentCpus.asString) / factor)?floor?c } cpu: ${ (parseQuantity(cr.spec.vm.currentCpus.asString) / factor)?c }
</#if> </#if>
<#if cr.spec.vm.currentRam?? > <#if cr.spec.vm.currentRam?? >
<#assign factor = 1.25 /> <#assign factor = 1.25 />