You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 70ac79d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(kubernetes): subtract CPU reservations in capacity annotation
The CPU capacity annotation previously reported raw effective CPU
without subtracting system-reserved and kube-reserved. Now it computes
allocatable CPU (effective minus reservations) to match what the cluster
autoscaler uses for scaling decisions.
Also fix the CPU total validation block to use cozy-lib.resources.toFloat
for consistent millicore parsing.
Signed-off-by: Arsolitt <[email protected]>
{{- fail (printf "nodeGroup %s: total reserved CPU (systemReservedCpu=%s + kubeReservedCpu=%s) must be less than effective node CPU (%s cores)" $groupName $systemReservedCpu $kubeReservedCpu $effectiveCpu) }}
0 commit comments