k3s/pkg/kubelet/cm
Kubernetes Submit Queue 2084f7f4f3
Merge pull request #54488 from lichuqiang/plugin_base
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add admission handler for device resources allocation

**What this PR does / why we need it**:
Add admission handler for device resources allocation to fail fast during pod creation

**Which issue this PR fixes** 
fixes #51592

**Special notes for your reviewer**:
@jiayingz Sorry, there is something wrong with my branch in #51895. And I think the existing comments in the PR might be too long for others to view. So I closed it and opened the new one, as we have basically reach an agreement on the implement :)
I have covered the functionality and unit test part here, and would set about the e2e part ASAP

/cc @jiayingz @vishh @RenaudWasTaken 

**Release note**:

```release-note
NONE
```
2017-11-02 17:24:06 -07:00
..
cpumanager set leveled logging (v=4) for 'updating container' message 2017-11-01 16:54:23 -04:00
cpuset update BUILD files 2017-10-15 18:18:13 -07:00
deviceplugin Merge pull request #54488 from lichuqiang/plugin_base 2017-11-02 17:24:06 -07:00
util update BUILD files 2017-10-15 18:18:13 -07:00
BUILD add admission handler for device resources allocation 2017-11-02 09:17:48 +08:00
cgroup_manager_linux.go update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
cgroup_manager_linux_test.go stop double encoding systemd style cgroup names 2017-02-21 16:34:21 -05:00
cgroup_manager_test.go move KubeletConfiguration out of componentconfig API group 2017-08-15 08:12:42 -07:00
cgroup_manager_unsupported.go kubelet: enable qos-level memory request reservation 2017-03-02 15:04:13 -06:00
container_manager.go add admission handler for device resources allocation 2017-11-02 09:17:48 +08:00
container_manager_linux.go add admission handler for device resources allocation 2017-11-02 09:17:48 +08:00
container_manager_linux_test.go use GetFileType per mount.Interface to check hostpath type 2017-09-26 09:57:06 +08:00
container_manager_stub.go add admission handler for device resources allocation 2017-11-02 09:17:48 +08:00
container_manager_unsupported.go add admission handler for device resources allocation 2017-11-02 09:17:48 +08:00
container_manager_unsupported_test.go Make *fakeMountInterface in container_manager_unsupported_test.go implement mount.Interface again. 2017-09-04 21:48:55 -07:00
container_manager_windows.go Fix Start signature in container_manager_windows. 2017-09-04 07:24:59 -07:00
fake_internal_container_lifecycle.go Un-revert "CPU manager wiring and `none` policy" 2017-09-04 07:24:59 -07:00
helpers_linux.go update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
helpers_linux_test.go update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
helpers_unsupported.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
internal_container_lifecycle.go Fixed nil InternalContainerLifecycle in cm stubs. 2017-09-04 07:24:59 -07:00
node_container_manager.go apimachinery: remove Scheme.DeepCopy 2017-10-06 14:59:17 +02:00
node_container_manager_test.go Fix --kube-reserved storage key name and add test cases for node allocatable reservation 2017-09-26 09:32:21 +08:00
pod_container_manager_linux.go Fix some typos 2017-07-27 21:31:31 +08:00
pod_container_manager_stub.go run hack/update-all 2017-06-22 11:31:03 -07:00
pod_container_manager_unsupported.go run hack/update-all 2017-06-22 11:31:03 -07:00
qos_container_manager_linux.go Merge pull request #53790 from yanxuean/cgroupredundancy 2017-10-13 19:19:32 -07:00
types.go update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00