const milliCPUToCPU … const quotaPeriod … const minQuotaPeriod … // milliCPUToQuota converts milliCPU to CFS quota and period values // Input parameters and resulting value is number of microseconds. func milliCPUToQuota(milliCPU int64, period int64) (quota int64) { … } // sharesToMilliCPU converts CpuShares (cpu.shares) to milli-CPU value // TODO(vinaykul,InPlacePodVerticalScaling): Address issue that sets min req/limit to 2m/10m before beta // See: https://github.com/kubernetes/kubernetes/pull/102884#discussion_r662552642 func sharesToMilliCPU(shares int64) int64 { … } // quotaToMilliCPU converts cpu.cfs_quota_us and cpu.cfs_period_us to milli-CPU value func quotaToMilliCPU(quota int64, period int64) int64 { … }