kubernetes/plugin/pkg/admission
Kubernetes Submit Queue 76434bd62a
Merge pull request #66780 from NetApp/volumeresize
Automatic merge from submit-queue (batch tested with PRs 66780, 67330). 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>.

Changed admission controller to allow volume expansion for all volume plugins

**What this PR does / why we need it**:
There are two motivations for this change:

1. CSI plugins are soon going to support volume expansion. For such plugins, admission controller doesn't know whether the plugins are capabale of supporting volume expansion or not.
2. Currently, admission controller rejects PVC updates for in-tree plugins that don't support volume expansion (e.g., NFS, iSCSI). This change allows external controllers to expand volumes similar to how external provisioners are accommodated.

**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 #

**Special notes for your reviewer**:
This PR mimics the behavior of the PV controller when PVs are provisioned externally by logging and setting a new event for PVs that are being expanded externally. As SIG Storage is planning new types of operations on PVs, it may make more sense to a have a single event for all actions taken by external controllers.

**Release note**:

```release-note
The check for unsupported plugins during volume resize has been moved from the admission controller to the two controllers that handle volume resize.
```
/sig storage
/assign @gnufied @jsafrane @wongma7
2018-08-14 12:22:00 -07:00
..
admit Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
alwayspullimages Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
antiaffinity Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
defaulttolerationseconds Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
deny Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
eventratelimit Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
exec generated 2018-08-06 18:59:53 -07:00
extendedresourcetoleration Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
gc Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
imagepolicy Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
limitranger Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
namespace Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
noderestriction node authz/ad externalization 2018-08-09 10:57:30 +08:00
podnodeselector Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
podpreset Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
podtolerationrestriction Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
priority Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
resourcequota Merge pull request #66866 from kgolab/kg-quota-refactor 2018-08-09 15:11:07 -07:00
security Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
securitycontext/scdeny Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
serviceaccount Support dry run in admission plugins 2018-08-06 10:37:44 -07:00
storage Merge pull request #66780 from NetApp/volumeresize 2018-08-14 12:22:00 -07:00
OWNERS add deads to admission owners 2017-10-16 13:43:54 -04:00