Skip to content

[WIP][FG:InPlacePodVerticalScaling] Remove CPUs based on the mustKeepCpus which get from container by function RunInContainer #131331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions pkg/apis/core/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2495,6 +2495,8 @@ type ResourceRequirements struct {
// +featureGate=DynamicResourceAllocation
// +optional
Claims []ResourceClaim
// Add mustKeepCPUs
MustKeepCPUs string
}

// VolumeResourceRequirements describes the storage resource requirements for a volume.
Expand Down
438 changes: 423 additions & 15 deletions pkg/kubelet/cm/cpumanager/cpu_assignment.go

Large diffs are not rendered by default.

Loading