kubernetes/pkg/api
Kubernetes Submit Queue bee221cca9 Merge pull request #51638 from mfojtik/client-gen-custom-methods
Automatic merge from submit-queue (batch tested with PRs 51805, 51725, 50925, 51474, 51638)

Allow custom client verbs to be generated using client-gen

This change will allow to define custom verbs for resources using the following new tag:

```
// +genclient:method=Foo,verb=create,subresource=foo,input=Bar,output=k8s.io/pkg/api.Blah
```

This will generate client method `Foo(bar *Bar) (*api.Blah, error)` (format depends on the particular verb type)

With this change we can add `UpdateScale()` and `GetScale()` into all scalable resources. Note that intention of this PR is not to fix the Scale(), but that is used as an example of this new capability.
Additionally this will also allow us to get rid of `// +genclient:noStatus` and fix guessing of the "updateStatus" subresource presence based on the existence of '.Status' field.
Basically you will have to add following into all types you want to generate `UpdateStatus()` for:

```
// +genclient:method=UpdateStatus,verb=update,subresource=status
```

This allows further extension of the client without writing an expansion (which proved to be pain to maintain and copy...). Also allows to customize native CRUD methods if needed (input/output types).

```release-note
NONE
```
2017-09-03 11:10:09 -07:00
..
endpoints Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
events Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
fuzzer fix fuzzer for hostpath type that the path can be an empty string 2017-08-24 17:24:04 +08:00
helper Add feature gate for local storage quota 2017-08-26 14:14:26 +08:00
install Merge pull request #50094 from sttts/sttts-no-importprefix 2017-08-14 12:14:55 -07:00
persistentvolume refactor CephFS PV spec to use SecretReference 2017-08-24 18:49:05 +00:00
pod Make metav1.(Micro)?Time functions take pointers 2017-08-17 11:24:28 +02:00
ref Merge pull request #50204 from smarterclayton/move_list_to_metav1 2017-08-16 02:50:26 -07:00
resource Add local storage to downwards API 2017-08-26 11:58:21 +08:00
service Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
testapi Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
testing IPBlock generated code 2017-08-24 16:20:15 -04:00
unversioned Add debugging to the codegen process 2017-08-25 14:08:42 -07:00
util Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
v1 Add API for mount propagation. 2017-09-01 21:36:32 +02:00
validation Add API for mount propagation. 2017-09-01 21:36:32 +02:00
annotation_key_constants.go mark created-by annotation as deprecated 2017-08-15 17:08:07 -07:00
BUILD Remove generated JSON code 2017-08-31 23:31:12 -07:00
conversion_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
copy_test.go pkg/api: simplify deepcopy calls 2017-08-29 20:04:05 +02:00
deep_copy_test.go pkg/api: simplify deepcopy calls 2017-08-29 20:04:05 +02:00
defaulting_test.go pkg/api: simplify deepcopy calls 2017-08-29 20:04:05 +02: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
OWNERS Add liggitt as an API approver. Note that bgrant0607 is an approver, but 2017-08-23 11:32:05 -07:00
register.go Dynamic Kubelet Configuration 2017-08-08 12:21:37 -07:00
replication_controller_example.json Initial Quobyte support 2016-08-18 17:13:50 +02:00
resource.go Remove previous local storage resource name 'scratch" and "overlay" 2017-08-27 12:03:31 +08:00
serialization_proto_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
serialization_test.go Use json-iterator for JSON, kill off codecgen 2017-08-31 23:30:45 -07:00
taint_test.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
taint.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 #51638 from mfojtik/client-gen-custom-methods 2017-09-03 11:10:09 -07:00
unstructured_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
zz_generated.deepcopy.go Add API for mount propagation. 2017-09-01 21:36:32 +02:00