kubernetes/pkg/kubectl/cmd/util/openapi/validation
Kubernetes Submit Queue 1ddf2e8ab9 Merge pull request #52742 from apelisse/validate-resource-even-if-unregistered
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>.

openapi: Validate unregistered type, if they can be found

**What this PR does / why we need it**:
Types that are not registered/hard-coded in kubectl won't be validated, even if they could because they are defined in openapi. If they are neither registered nor in openapi, then skip validation. 

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes nothing

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```
2017-10-02 07:14:02 -07:00
..
BUILD Merge pull request #52742 from apelisse/validate-resource-even-if-unregistered 2017-10-02 07:14:02 -07:00
errors.go openapi: Add validation logic 2017-08-11 17:02:31 -07:00
types.go Revert "remove dup pkg and update reference" 2017-09-06 12:30:53 -07:00
validation_suite_test.go openapi: Add validation logic 2017-08-11 17:02:31 -07:00
validation_test.go Fixed test issue for image validation. 2017-09-20 00:38:28 -04:00
validation.go openapi: Validate unregistered type, if they can be found 2017-09-29 20:22:15 -07:00