kubernetes/pkg/kubelet
k8s-merge-robot 0f20ab63af 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
2016-07-08 19:12:01 -07:00
..
api/v1alpha1/stats Includes the number of free indoes in summary 2016-06-30 10:05:57 -07:00
cadvisor Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
client Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
cm Add checks in Create and Update Cgroup methods 2016-07-07 14:17:14 -07:00
config Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
container Merge pull request #28204 from thockin/cleanup-third_party 2016-07-07 12:13:14 -07:00
custommetrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
dockertools Merge pull request #28240 from Random-Liu/add-semver-back 2016-06-30 23:20:56 -07:00
envvars Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
eviction Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
leaky Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
lifecycle Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
network Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pleg Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pod Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
prober Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
qos Merge pull request #27900 from derekwaynecarr/test_defaults_qos 2016-07-01 16:16:23 -07:00
rkt Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
server Includes the number of free indoes in summary 2016-06-30 10:05:57 -07:00
status Move ActiveDeadlineSeconds to use lifecycle observers 2016-07-07 13:43:55 -04:00
types Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
volumemanager Reorganize volume controllers and manager 2016-07-01 18:50:25 -07:00
active_deadline_test.go Move ActiveDeadlineSeconds to use lifecycle observers 2016-07-07 13:43:55 -04:00
active_deadline.go Move ActiveDeadlineSeconds to use lifecycle observers 2016-07-07 13:43:55 -04:00
container_bridge.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
disk_manager_test.go Revert "Declare out of disk when there is no free inodes" 2016-07-06 08:19:09 -07:00
disk_manager.go Revert "Declare out of disk when there is no free inodes" 2016-07-06 08:19:09 -07:00
doc.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
flannel_helper.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
image_manager_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
image_manager.go Log all image deletion errors instead of just the last one 2016-07-01 20:00:05 -07:00
kubelet_cadvisor_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_cadvisor.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_getters_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_getters.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_network_test.go Extract kubelet network code into its own file 2016-07-08 15:18:07 -04:00
kubelet_network.go Extract kubelet network code into its own file 2016-07-08 15:18:07 -04:00
kubelet_resources_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_resources.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_test.go Extract kubelet network code into its own file 2016-07-08 15:18:07 -04:00
kubelet_volumes.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet.go Extract kubelet network code into its own file 2016-07-08 15:18:07 -04:00
networks.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
oom_watcher_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
oom_watcher.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
pod_workers_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pod_workers.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
reason_cache_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
reason_cache.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
root_context_linux.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
root_context_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
runonce_test.go Reorganize volume controllers and manager 2016-07-01 18:50:25 -07:00
runonce.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
runtime.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
volume_host.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00