diff options
| author | k8s-merge-robot <k8s.production.user@gmail.com> | 2016-04-02 19:31:40 -0700 |
|---|---|---|
| committer | k8s-merge-robot <k8s.production.user@gmail.com> | 2016-04-02 19:31:40 -0700 |
| commit | 35bb505fbaefa807404d1516eb43d12fc4858279 (patch) | |
| tree | 4b16d2328ddeda232b05566ee2a1bca27bdd2a6e | |
| parent | a14214ee5e85a24241f416ecd331b3b666dfb62e (diff) | |
| parent | 6e11ba72c43dee28ad33a4992528b7f0ba852a29 (diff) | |
Merge pull request #23608 from caesarxuchao/mv-typed-clients
Automatic merge from submit-queue
Move typed clients into clientset folder
Move typed clients from `pkg/client/typed/` to `pkg/client/clientset_generated/${clientset_name}/typed`.
The first commit changes the client-gen, the last commit updates the doc, other commits are just moving things around.
@lavalamp @krousey
| -rw-r--r-- | generating-clientset.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generating-clientset.md b/generating-clientset.md index f5a8ca76..1788627e 100644 --- a/generating-clientset.md +++ b/generating-clientset.md @@ -47,12 +47,12 @@ $ client-gen --input="api/v1,extensions/v1beta1" --clientset-name="my_release" ``` will generate a clientset named "my_release" which includes clients for api/v1 objects and extensions/v1beta1 objects. You can run `$ client-gen --help` to see other command line arguments. -- Adding expansion methods: client-gen only generates the common methods, such as `Create()` and `Delete()`. You can manually add additional methods through the expansion interface. For example, this [file](../../pkg/client/typed/generated/core/v1/pod_expansion.go) adds additional methods to Pod's client. As a convention, we put the expansion interface and its methods in file ${TYPE}_expansion.go. +- Adding expansion methods: client-gen only generates the common methods, such as `Create()` and `Delete()`. You can manually add additional methods through the expansion interface. For example, this [file](../../pkg/client/clientset_generated/release_1_2/typed/core/v1/pod_expansion.go) adds additional methods to Pod's client. As a convention, we put the expansion interface and its methods in file ${TYPE}_expansion.go. - Generating Fake clients for testing purposes: client-gen will generate a fake clientset if the command line argument `--fake-clientset` is set. The fake clientset provides the default implementation, you only need to fake out the methods you care about when writing test cases. The output of client-gen inlcudes: -- Individual typed clients and client for group: They will be generated at `pkg/client/typed/generated/${GROUP}/${VERSION}/` -- clientset: the top-level clientset will be generated at `pkg/client/clientset_generated` by default, and you can change the path via the `--clientset-path` command line argument. +- clientset: the clientset will be generated at `pkg/client/clientset_generated/` by default, and you can change the path via the `--clientset-path` command line argument. +- Individual typed clients and client for group: They will be generated at `pkg/client/clientset_generated/${clientset_name}/typed/generated/${GROUP}/${VERSION}/` ## Released clientsets |
