k3s/pkg
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
..
api Merge pull request #49192 from mfojtik/unify-clientgen-tags 2017-07-25 02:43:13 -07:00
apimachinery/tests Move pkg/apimachinery/test to apimachinery 2017-07-08 08:48:38 +08:00
apis Merge pull request #49192 from mfojtik/unify-clientgen-tags 2017-07-25 02:43:13 -07:00
auth
bootstrap/api
capabilities
client regenerate clients 2017-07-24 22:35:19 +02:00
cloudprovider Merge pull request #49299 from dims/delay-looking-for-instance-id 2017-07-21 22:23:19 -07:00
controller Merge pull request #49358 from jianglingxia/jlx72113 2017-07-24 21:26:54 -07:00
conversion
credentialprovider azure: acr: support auth to preview ACR w/ MSI+AAD 2017-07-18 15:22:34 -07:00
features Update factory.go informers to update equivalence cache 2017-07-18 23:55:01 +08:00
fieldpath
fields
generated Merge pull request #48746 from janetkuo/apps-v1beta2 2017-07-21 11:47:21 -07:00
hyperkube
kubeapiserver *: remove --insecure-allow-any-token option 2017-07-18 16:03:15 -07:00
kubectl Merge pull request #49438 from zhangxiaoyu-zidif/delete-err-def-for-drain 2017-07-24 20:39:18 -07:00
kubelet Merge pull request #48846 from dashpole/remove_ood 2017-07-24 23:05:50 -07:00
kubemark Merge pull request #48846 from dashpole/remove_ood 2017-07-24 23:05:50 -07:00
labels
master Don't enable apps/v1beta2 by default 2017-07-20 10:25:21 -07:00
printers Merge pull request #48846 from dashpole/remove_ood 2017-07-24 23:05:50 -07:00
probe update godep 2017-07-20 11:03:49 -07:00
proxy update godep 2017-07-20 11:03:49 -07:00
quota use informers for quota evaluation of core resources where possible 2017-07-19 15:52:39 -04:00
registry Merge pull request #48418 from xiangpengzhao/refactor-create-svc 2017-07-22 02:05:21 -07:00
routes
runtime
security Refactor: pkg/util into sub-pkgs 2017-07-18 14:34:08 +08:00
securitycontext
serviceaccount Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
ssh
types
util Merge pull request #46514 from ravisantoshgudimetla/scheduler_taints_refactor 2017-07-21 22:23:24 -07:00
version
volume Merge pull request #49496 from rootfs/iscsi-fc-reviewer 2017-07-25 01:41:31 -07:00
watch
BUILD generated innocuous change 2017-07-21 14:29:59 -07:00
OWNERS