mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 23:37:45 +00:00
Merge pull request #9195 from UiPath/fix/vcpus-for-static-mgmt
runtime: Set maxvcpus equal to vcpus for the static resources case
This commit is contained in:
commit
5869046d04
@ -1100,6 +1100,8 @@ func SandboxConfig(ocispec specs.Spec, runtime RuntimeConfig, bundlePath, cid st
|
||||
sandboxConfig.HypervisorConfig.NumVCPUsF += sandboxConfig.SandboxResources.WorkloadCPUs
|
||||
sandboxConfig.HypervisorConfig.MemorySize += sandboxConfig.SandboxResources.WorkloadMemMB
|
||||
|
||||
sandboxConfig.HypervisorConfig.DefaultMaxVCPUs = sandboxConfig.HypervisorConfig.NumVCPUs()
|
||||
|
||||
ociLog.WithFields(logrus.Fields{
|
||||
"workload cpu": sandboxConfig.SandboxResources.WorkloadCPUs,
|
||||
"default cpu": sandboxConfig.SandboxResources.BaseCPUs,
|
||||
|
Loading…
Reference in New Issue
Block a user