kubernetes/pkg/kubelet/cm
Kubernetes Submit Queue e8dd75f37d
Merge pull request #58282 from vikaschoudhary16/per-container-allocate
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>.

Invoke preStart RPC call before container start, if desired by plugin

**What this PR does / why we need it**:
1. Adds a new RPC `preStart` to device plugin API
2. Update `Register` RPC handling to receive a flag from the Device plugins as an indicator if kubelet should invoke `preStart` RPC before starting container.
3. Changes in device manager to invoke `preStart` before container start
4. Test case updates


**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #56943 #56307 


**Special notes for your reviewer**:

**Release note**:

```release-note
None
```
/sig node

/area hw-accelerators
/cc @jiayingz @RenaudWasTaken @vishh @ScorpioCPH @sjenning @derekwaynecarr @jeremyeder @lichuqiang @tengqm
2018-02-21 13:07:26 -08:00
..
cpumanager Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cpuset Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
devicemanager Migrate deviceplugin api from v1alpha to v1beta1 2018-02-21 01:26:20 -05:00
util Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cgroup_manager_linux_test.go Test cases fix after path expansion 2018-02-20 14:23:09 -05:00
cgroup_manager_linux.go kubelet ignores hugepages if hugetlb is not enabled 2018-02-05 13:07:59 -05:00
cgroup_manager_test.go Lift embedded structure out of eviction-related KubeletConfiguration fields 2017-11-16 18:35:13 -08:00
cgroup_manager_unsupported.go Add pod-level metric for CPU and memory stats 2017-11-22 09:25:23 -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_linux.go Invoke PreStart RPC call before container start, if desired by plugin 2018-02-21 01:25:24 -05:00
container_manager_stub.go collect metrics on the /kubepods cgroup on-demand 2018-02-17 12:32:40 -08:00
container_manager_unsupported.go Remove redundant code in container manager. 2017-11-24 03:15:55 -08:00
container_manager_windows.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
container_manager.go collect metrics on the /kubepods cgroup on-demand 2018-02-17 12:32:40 -08:00
fake_internal_container_lifecycle.go Un-revert "CPU manager wiring and none policy" 2017-09-04 07:24:59 -07:00
helpers_linux_test.go update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
helpers_linux.go Add pod-level metric for CPU and memory stats 2017-11-22 09:25:23 -08:00
helpers_unsupported.go Add pod-level metric for CPU and memory stats 2017-11-22 09:25:23 -08:00
internal_container_lifecycle.go Fixed nil InternalContainerLifecycle in cm stubs. 2017-09-04 07:24:59 -07: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
node_container_manager.go Move some kubelet constants to a common place. 2017-12-01 11:24:04 +08:00
OWNERS Add ConnorDoyle as approver in /pkg/kubelet/cm. 2017-12-06 09:05:59 -06:00
pod_container_manager_linux.go Set pids limit at pod level 2018-01-11 21:22:38 -05:00
pod_container_manager_stub.go run hack/update-all 2017-06-22 11:31:03 -07:00
pod_container_manager_unsupported.go Remove redundant code in container manager. 2017-11-24 03:15:55 -08:00
qos_container_manager_linux.go Merge pull request #52977 from yanxuean/improvecgroup 2017-11-18 13:13:28 -08:00
types.go Set pids limit at pod level 2018-01-11 21:22:38 -05:00