k3s/pkg/api
Kubernetes Submit Queue cce1c9b41e Merge pull request #49192 from mfojtik/unify-clientgen-tags
Automatic merge from submit-queue (batch tested with PRs 49498, 49192)

Unify genclient tags and add more fine control on verbs generated

This will change the syntax of the existing `genclient` tags be like this:

```
// +genclient
// +genclient:noStatus
// +genclient:noVerbs
// +genclient:nonNamespaced
// +genclient:readonly
```

The first one indicates the client will be generated from the struct below and the other tags are basically options to the genclient (which justify why they should be prefixed with `genclient:`)

This also changes the `// +genclientstatus=false` to `// +genclient:noStatus` to follow the pattern and also changes the `// +noMethods=true` to `// +genclient:noVerbs` as we call the REST operations verbs so it will make it consistent with terminology.

In addition to existing options this patch also add two more to allow more fine-grained control on which verbs are going to be generated. This is extra useful for third-party projects (like OpenShift) where some resources does not implement full CRUD, but for example just "create" verb or "create" and "delete"...
To support that, you can use this syntax:

```
// +genclient:onlyVerbs=create,delete
// +genclient:skipVerbs=patch
```

The first one will generate only create and delete functions and second one will generate full CRUD without "patch" actions. This somehow overlaps with the existing "readonly" tag, but I want to keep that tag in place as it reads better in some cases ;-)
2017-07-25 02:43:13 -07:00
..
endpoints autogenerated 2017-04-14 10:40:57 -07:00
errors
events autogenerated 2017-04-14 10:40:57 -07:00
helper Removes alpha feature gate for affinity annotations. Beta fields should be used. 2017-06-23 10:02:14 -05:00
install run hack/update-all 2017-06-22 11:31:03 -07:00
meta
persistentvolume Add StorageOS volume plugin 2017-06-09 13:19:27 +01:00
pod Add StorageOS volume plugin 2017-06-09 13:19:27 +01:00
ref deepcopy: add interface deepcopy funcs 2017-07-18 09:28:47 +02: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 'Global' -> 'Cluster' for traffic policy 2017-06-01 16:17:38 -07:00
testapi autogenerated files 2017-07-18 17:47:57 -07:00
testing Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
unversioned deepcopy: add interface deepcopy funcs 2017-07-18 09:28:47 +02:00
util
v1 Merge pull request #49417 from caesarxuchao/rename 2017-07-24 19:30:40 -07:00
validation Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
BUILD Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
OWNERS remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
annotation_key_constants.go Removes alpha feature gate for affinity annotations. Beta fields should be used. 2017-06-23 10:02:14 -05:00
conversion_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
copy_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
deep_copy_test.go
defaulting_test.go Add new API version apps/v1beta2 2017-07-20 10:25:21 -07:00
doc.go
field_constants.go
json.go
meta_test.go
node_example.json
objectreference.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
register.go apimachinery: move unversioned registration to metav1 2017-05-29 11:53:45 +02:00
replication_controller_example.json
resource.go Add EmptyDir Volume and local storage for container overlay Isolation 2017-06-05 12:05:48 -07:00
serialization_proto_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
serialization_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02: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 Merge pull request #49192 from mfojtik/unify-clientgen-tags 2017-07-25 02:43:13 -07:00
unstructured_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
zz_generated.deepcopy.go Update generated code 2017-07-18 09:28:49 +02:00