kubernetes/pkg/apis/core/validation
Kubernetes Submit Queue 344b915484
Merge pull request #66843 from verult/validate-allowedtopologies
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>.

Added set and map structural validation for AllowedTopologies

**What this PR does / why we need it**: Adding structural validation to AllowedTopologies field in StorageClass.

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

**Release note**:

```release-note
AllowedTopologies field inside StorageClass is now validated against set and map semantics. Specifically, there cannot be duplicate TopologySelectorTerms, MatchLabelExpressions keys, and TopologySelectorLabelRequirement Values.
```
2018-08-27 15:09:52 -07:00
..
BUILD auto-generated file 2018-07-28 07:54:17 +08:00
doc.go pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
events_test.go Add new Events API group 2017-11-22 18:40:09 +00:00
events.go remove incorrect static restmapper 2018-05-01 07:51:17 -04:00
OWNERS
validation_test.go Address @thockin feedback 2018-08-23 13:14:49 -07:00
validation.go Merge pull request #66843 from verult/validate-allowedtopologies 2018-08-27 15:09:52 -07:00