From 69383f415d2ba46cf6926ba16be087919dfccda9 Mon Sep 17 00:00:00 2001 From: Priyanka Saggu Date: Thu, 25 Jun 2020 13:23:22 +0530 Subject: [PATCH] Update broken file link in title 3 --- contributors/devel/sig-api-machinery/generating-clientset.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors/devel/sig-api-machinery/generating-clientset.md b/contributors/devel/sig-api-machinery/generating-clientset.md index a5619b97b..3eb46b3e0 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