Commit 6950fab4 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #23786 from tnguyen-rh/fix-typo

Automatic merge from submit-queue Fix typo
parents ff081381 dd7b94db
...@@ -40,7 +40,7 @@ Client-gen is an automatic tool that generates [clientset](../../docs/proposals/ ...@@ -40,7 +40,7 @@ Client-gen is an automatic tool that generates [clientset](../../docs/proposals/
The workflow includes four steps: The workflow includes four steps:
- Marking API types with tags: in `pkg/apis/${GROUP}/${VERSION}/types.go`, mark the types (e.g., Pods) that you want to generate clients for with the `// +genclient=true` tag. If the resource associated with the type is not namespace scoped (e.g., PersistentVolume), you need to append the `nonNamespaced=true` tag as well. - Marking API types with tags: in `pkg/apis/${GROUP}/${VERSION}/types.go`, mark the types (e.g., Pods) that you want to generate clients for with the `// +genclient=true` tag. If the resource associated with the type is not namespace scoped (e.g., PersistentVolume), you need to append the `nonNamespaced=true` tag as well.
- Running the client-gen tool: you need to use the command line argument `--input` to specify the groups and versions of the APIs you want to generate clients for, client-gen will then look into `pkg/apis/${GROUP}/${VERSION}/types.go` and generate clients for the types you have marked with the `genlcient` tags. For example, run - Running the client-gen tool: you need to use the command line argument `--input` to specify the groups and versions of the APIs you want to generate clients for, client-gen will then look into `pkg/apis/${GROUP}/${VERSION}/types.go` and generate clients for the types you have marked with the `genclient` tags. For example, run
``` ```
$ client-gen --input="api/v1,extensions/v1beta1" --clientset-name="my_release" $ client-gen --input="api/v1,extensions/v1beta1" --clientset-name="my_release"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment