diff options
| author | Priyanka Saggu <priyankasaggu11929@gmail.com> | 2020-06-25 13:23:22 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-25 13:23:22 +0530 |
| commit | 69383f415d2ba46cf6926ba16be087919dfccda9 (patch) | |
| tree | e074e9025d3755c8802dbff2a3b06bf41098253f /contributors | |
| parent | 284c616e100a19c184b79267dd838f69815b02c4 (diff) | |
Update broken file link in title 3
Diffstat (limited to 'contributors')
| -rw-r--r-- | contributors/devel/sig-api-machinery/generating-clientset.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contributors/devel/sig-api-machinery/generating-clientset.md b/contributors/devel/sig-api-machinery/generating-clientset.md index a5619b97..3eb46b3e 100644 --- a/contributors/devel/sig-api-machinery/generating-clientset.md +++ b/contributors/devel/sig-api-machinery/generating-clientset.md @@ -33,7 +33,7 @@ In addition, the following optional tags influence the client generation: $ client-gen --input="api/v1,extensions/v1beta1" --clientset-name="my_release" ``` -**3.** ***Adding expansion methods***: client-gen only generates the common methods, such as CRUD. You can manually add additional methods through the expansion interface. For example, this [file](https://git.k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/internalversion/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. In most cases, you don't want to remove existing expansion files. So to make life easier, instead of creating a new clientset from scratch, ***you can copy and rename an existing clientset (so that all the expansion files are copied)***, and then run client-gen. +**3.** ***Adding expansion methods***: client-gen only generates the common methods, such as CRUD. You can manually add additional methods through the expansion interface. For example, this [file](https://git.k8s.io/kubernetes/staging/src/k8s.io/client-go/kubernetes/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. In most cases, you don't want to remove existing expansion files. So to make life easier, instead of creating a new clientset from scratch, ***you can copy and rename an existing clientset (so that all the expansion files are copied)***, and then run client-gen. ## Output of client-gen |
