Skip to content

Commit

Permalink
fix cores
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 9, 2024
1 parent 46ef565 commit 9643f9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ func (b *KVVM) SetCpu(cores int, coreFraction string) error {
}
domainSpec.Resources.Requests[corev1.ResourceCPU] = *cpuRequest
domainSpec.Resources.Limits[corev1.ResourceCPU] = *cpuLimit
domainSpec.CPU.Cores = uint32(cores)
// https://bugzilla.redhat.com/show_bug.cgi?id=1653453
domainSpec.CPU.Cores = uint32(1)
domainSpec.CPU.Sockets = uint32(cpuRequest.Value())
domainSpec.CPU.MaxSockets = uint32(cpuLimit.Value())
return nil
Expand Down

0 comments on commit 9643f9b

Please sign in to comment.