mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-11 09:35:36 +00:00
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 ```