in calculator/calculator.go [513:538]
func ValidateAndRoundResources(mCPU int64, memory int64, storage int64) (int64, int64, int64) {
// Lowest possible mCPU request, but this is different for DaemonSets that are not yet implemented
if mCPU < 50 {
mCPU = 50
}
// Minumum memory request, however it's 1G for Scaleout, we don't yet account for this
if memory < 52 {
memory = 52
}
if storage < 10 {
storage = 10
}
mCPUMissing := (50 - (mCPU % 50))
if mCPUMissing == 50 {
// Nothing to do here, return original values
return mCPU, memory, storage
}
// Add missing value to reach nearst 250mCPU step
mCPU += mCPUMissing
return mCPU, memory, storage
}