Skip to content

Commit 2d33364

Browse files
authored
Merge pull request #4896 from Priyankasaggu11929/patch-1
Update broken file link in title 3
2 parents 284c616 + 69383f4 commit 2d33364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contributors/devel/sig-api-machinery/generating-clientset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In addition, the following optional tags influence the client generation:
3333
$ client-gen --input="api/v1,extensions/v1beta1" --clientset-name="my_release"
3434
```
3535

36-
**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.
36+
**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.
3737

3838
## Output of client-gen
3939

0 commit comments

Comments
 (0)