kubernetes/pkg/apis/core/validation
Kubernetes Submit Queue 28e0c3bef2
Merge pull request #55164 from NickrenREN/validation-not-zero
Automatic merge from submit-queue (batch tested with PRs 49258, 55164). 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>.

Make sure that storage request of pvc is not zero

I do not know whether we should add the checking zero logic to `ValidateResourceQuantityValue`.
But at lease we should do this when validate PVC.  If PVC requests 0Gi storage,it does not make sense to provision that volume. 
Volume plugins will not check whether the request of PVC is 0 when they run `CreateVolume` or `CreateImage` called by `Provision()`

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

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```
2017-11-12 23:17:37 -08:00
..
BUILD Update generated files 2017-11-09 12:14:08 +01:00
doc.go pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
events_test.go pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
events.go pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
OWNERS
validation_test.go Merge pull request #55164 from NickrenREN/validation-not-zero 2017-11-12 23:17:37 -08:00
validation.go Make sure that storage request of pvc is not zero 2017-11-13 11:37:29 +08:00