k3s/pkg/api/validation
Kubernetes Submit Queue 82cde2182f Merge pull request #44741 from MrHohn/esipp-validation-refine
Automatic merge from submit-queue

Refine ESIPP validation logic in validation.go

Separated from #41162.

The previous ESIPP validation logic in validation.go has a huge overlap with [function healthCheckNodePortUpdate in service/rest.go](870585e8e1/pkg/registry/core/service/rest.go (L283-L373)), in which we reject any invalid modifications on ESIPP annotations.

This PR removes the overlap, and make validation.go only check if values are legal and whether user mixes different API versions (alpha & beta).

We are indeed removing the alpha annotation support, but it is kept in the codes for the ease of transiting the same logic onto beta/GA.

/assign @thockin @freehan 

**Release note**:

```release-note
NONE
```
2017-04-25 00:46:03 -07:00
..
testdata/v1 Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
BUILD move pkg/api/v1/helpers.go to subpackage 2017-04-14 14:25:11 -07:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
events.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
events_test.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
schema.go Improve error messages for ValidateObject method. 2017-01-24 09:12:06 +08:00
schema_test.go pkg/api/testing: cut off fuzzers from static codecs 2017-02-02 06:58:28 +01:00
validation.go Merge pull request #44741 from MrHohn/esipp-validation-refine 2017-04-25 00:46:03 -07:00
validation_test.go Merge pull request #44741 from MrHohn/esipp-validation-refine 2017-04-25 00:46:03 -07:00