-
Notifications
You must be signed in to change notification settings - Fork 40k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28566 from dubstack/dubstack-refactor-cgroup-manager
Automatic merge from submit-queue Add checks in Create and Update Cgroup methods This PR is connected to upstream issue for adding pod level cgroups in Kubernetes: #27204 Libcontainer currently doesen't support updates to parent devices cgroups. Until we get libcontainer to support skipping devices cgroup we will have that logic on the kubelet side. This PR includes: 1. Skip the devices cgroup when updating a cgroup. We only update the memory and cpu subsytems. 2. We explicitly pass all the cgroup paths that don't already exist to Apply() 3. Adds an AlreadyExists() method which is a utility function to check if all the subsystems of a cgroup already exist. On cgroupManager.Update() we only call Set() and cgroupManager.Create() we only call Apply() method @vishh PTAL
- Loading branch information
Showing
4 changed files
with
106 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters