k3s/pkg/api
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
..
annotations Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
endpoints autogenerated 2017-04-14 10:40:57 -07:00
errors Update bazel 2017-02-02 15:19:04 +01:00
events autogenerated 2017-04-14 10:40:57 -07:00
helper autogenerated 2017-04-14 10:40:57 -07:00
install autogenerated 2017-04-14 10:40:57 -07:00
meta add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
pod autogenerated 2017-04-14 10:40:57 -07:00
ref autogenerated 2017-04-14 10:40:57 -07:00
resource move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
service Refine NeedsHealthCheck logic 2017-04-17 14:26:02 -07:00
testapi autogenerated 2017-04-14 10:40:57 -07:00
testing autogenerated 2017-04-14 10:40:57 -07:00
unversioned autogenerated 2017-04-14 10:40:57 -07:00
util add unit test for groupversion 2017-02-03 17:37:42 +08:00
v1 Merge pull request #44578 from MrHohn/ESIPP-GA-1.7 2017-04-17 22:37:08 -07:00
validation Merge pull request #44741 from MrHohn/esipp-validation-refine 2017-04-25 00:46:03 -07:00
BUILD autogenerated 2017-04-14 10:40:57 -07:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00
annotation_key_constants.go move helpers.go to helper 2017-04-11 15:49:11 -07:00
conversion_test.go pkg/api/testing: cut off fuzzers from static codecs 2017-02-02 06:58:28 +01:00
copy_test.go make round trip testing generic 2017-02-09 11:42:22 -05:00
deep_copy_test.go Remove the temporary fix for pre-1.0 mirror pods 2017-02-02 10:37:19 -08:00
defaulting_test.go Remove vestiges of defaulting from conversion path, switch to top-level default registration only 2017-04-12 13:36:15 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
field_constants.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
json.go Change taint/toleration annotations to api fields. 2017-02-22 09:27:42 -05:00
meta_test.go API 2017-02-28 23:05:40 -08:00
node_example.json Change minion to node 2016-09-28 10:53:30 -07:00
objectreference.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
register.go Remove vestiges of defaulting from conversion path, switch to top-level default registration only 2017-04-12 13:36:15 -04:00
replication_controller_example.json Initial Quobyte support 2016-08-18 17:13:50 +02:00
resource.go move resource_helpers.go to a subpackage 2017-04-13 12:03:42 -07:00
serialization_proto_test.go Add a test that verifies all structs have protobuf tags 2017-03-17 00:29:14 -04:00
serialization_test.go apimachinery: handle duplicated and conflicting type registration 2017-02-27 21:58:21 +01:00
taint.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
taint_test.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
toleration.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
types.go add iSCSI CHAP API 2017-04-05 12:43:48 +00:00
unstructured_test.go Unified unstructured converter interface and setup 2017-02-17 21:07:04 +01:00
zz_generated.deepcopy.go move helpers.go to helper 2017-04-11 15:49:11 -07:00