kubernetes/pkg
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
..
api generated 2017-11-22 18:40:09 +00:00
apimachinery/tests update BUILD files 2017-10-15 18:18:13 -07:00
apis Mark Flexvolume as GA 2017-12-12 14:53:40 -05:00
auth move authorizers over to new interface 2017-11-03 13:46:28 -07:00
bootstrap/api Validate usage strings when creating bootstrap tokens via kubeadm 2017-11-13 09:37:20 +08:00
capabilities update BUILD files 2017-10-15 18:18:13 -07:00
client generated 2017-11-22 18:40:09 +00:00
cloudprovider Merge pull request #56918 from feiskyer/azure-probe 2017-12-11 19:58:17 -08:00
controller VolumeHost.GetNodeName method added for CSI fix 2017-12-02 05:54:54 -05:00
credentialprovider fix awsStandardDNSSuffix 2017-11-15 16:39:48 +08:00
features declare ipvs proxier beta 2017-11-30 17:49:08 +08:00
fieldpath Validate key subscript for metadata.annotations and metadata.labels separately 2017-11-22 15:50:40 -08:00
generated generated 2017-11-22 18:40:09 +00:00
hyperkube update BUILD files 2017-10-15 18:18:13 -07:00
kubeapiserver Merge pull request #56175 from ericchiang/oidc-fix-prefixing 2017-11-21 19:49:33 -08:00
kubectl build patch from openapi only for registered types 2017-12-01 13:44:11 -08:00
kubelet Merge pull request #56818 from jiayingz/init-container-fix 2017-12-12 17:25:56 -08:00
kubemark Move ungated 'alpha' KubeletConfiguration fields and self-registration fields to KubeletFlags 2017-11-15 17:47:10 -08:00
master kube-apiserver: enable admission registration v1beta by default 2017-12-01 12:14:07 +01:00
printers support flexvlome in psp 2017-11-23 16:06:51 +08:00
probe update BUILD files 2017-10-15 18:18:13 -07:00
proxy Separates validation per-runtime. 2017-12-04 17:48:28 -08:00
quota update unit test for hugepage resourceQuota support 2017-11-13 09:37:20 +08:00
registry admission: do not require v1alph1 for v1beta1 2017-12-01 14:14:39 +01:00
routes Update Dashboard add-on to version 1.8.0 2017-11-28 17:53:02 +01:00
security support flexvlome in psp 2017-11-23 16:06:51 +08:00
securitycontext Update generated files 2017-11-09 12:14:08 +01:00
serviceaccount Update generated files 2017-11-09 12:14:08 +01:00
ssh update BUILD files 2017-10-15 18:18:13 -07:00
util Use PATCHs instead of PUTs in CIDR allocator 2017-11-23 21:04:28 +01:00
version Capture git export-subst strings in version.sh for 'git archive' use. 2017-11-09 16:36:27 -08:00
volume CSI - Multiple bug fixes for NodeProbe, vol data file, mount dir create 2017-12-08 15:24:28 -05:00
watch update BUILD files 2017-10-15 18:18:13 -07:00
.import-restrictions Add import-boss directives 2017-10-13 07:06:22 -04:00
BUILD generated 2017-11-22 18:40:09 +00:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00