kubernetes/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 Only do string trim when it's necessary 2017-06-15 17:32:31 +08:00
bootstrap/api run hack/update-all 2017-06-22 11:31:03 -07:00
capabilities Fix comment for method SetForTests 2017-02-14 17:16:49 +08:00
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 Revert "Remove conversion package" 2017-01-22 15:41:06 -08:00
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 Add Pod UID (metadata.uid) to downward API env var 2017-06-27 16:54:35 +08:00
fields move pkg/fields to apimachinery 2017-01-19 09:50:16 -05:00
generated Merge pull request #48746 from janetkuo/apps-v1beta2 2017-07-21 11:47:21 -07:00
hyperkube Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
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 add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
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 Merge pull request #45490 from deads2k/owners-01-extensions 2017-05-10 12:51:51 -07:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
security Refactor: pkg/util into sub-pkgs 2017-07-18 14:34:08 +08:00
securitycontext run hack/update-all 2017-06-22 11:31:03 -07:00
serviceaccount Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
ssh autogenerated 2017-04-14 10:40:57 -07:00
types add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
util Merge pull request #46514 from ravisantoshgudimetla/scheduler_taints_refactor 2017-07-21 22:23:24 -07:00
version Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -07:00
volume Merge pull request #49496 from rootfs/iscsi-fc-reviewer 2017-07-25 01:41:31 -07:00
watch autogenerated 2017-04-14 10:40:57 -07:00
BUILD generated innocuous change 2017-07-21 14:29:59 -07:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00