Files
kubernetes/pkg/kubelet
Kubernetes Submit Queue 38e3351312 Merge pull request #56818 from jiayingz/init-container-fix
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>.

Re-uses device plugin resources allocated to init containers.

Implements option 2 mentioned in
https://github.com/kubernetes/kubernetes/issues/56022#issuecomment-348286184



**What this PR does / why we need it**:
This PR implements the option 2 solution discussed in https://github.com/kubernetes/kubernetes/issues/56022#issuecomment-348286184.
This is one of short-term fix we are considering for a 1.9 patch release. The alternative is to disallow requesting device plugin resources in init containers,
as PR https://github.com/kubernetes/kubernetes/pull/56659 is taking.
The long-term fix we want to implement for 1.10 is still open to discussion.

**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 https://github.com/kubernetes/kubernetes/issues/56022

**Special notes for your reviewer**:

**Release note**:

```release-note

```
2017-12-12 17:25:56 -08:00
..
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-11-09 12:14:08 +01:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-11-10 13:14:40 +01:00
2017-10-17 11:31:46 +02:00
2017-11-09 12:14:08 +01:00
2017-10-15 18:18:13 -07:00
2017-11-09 12:14:08 +01:00
2017-10-27 15:16:53 +08:00
2017-11-16 21:07:24 -08:00
2017-10-15 18:18:13 -07:00
2017-11-09 12:14:08 +01:00
2017-11-09 12:14:08 +01:00
2017-11-20 21:54:15 -06:00
2017-07-10 14:05:46 -07:00
2017-07-19 11:33:06 +08:00