Don't round, CPU fractions are supported.
This commit is contained in:
parent
7e094e720b
commit
70ecc39466
1 changed files with 1 additions and 1 deletions
|
|
@ -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 />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue