You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -11,3 +11,21 @@ Common generator scripts for all client libraries
11
11
12
12
[](https://github.com/kubernetes-client)
13
13
14
+
#Generating a client
15
+
To generate a client, first make sure the client generator exists. For any language other than
16
+
go, check `openapi/` folder for a script with `${CLIENT_LANGUAGE}.sh` and run this command:
17
+
18
+
```bash
19
+
${CLIENT_LANGUAGE}.sh OUTPUT_DIR SETTING_FILE
20
+
```
21
+
22
+
`SETTING_FILE` is a bash script exporting required setting to generate a client. These
23
+
are normally:
24
+
25
+
-`KUBERNETES_BRANCH`: The kubernetes branch to get OpenAPI spec from.
26
+
-`CLIENT_VERSION`: Client version string. e.g. 1.0.0b1
27
+
-`PACKAGE_NAME`: Package name for the generated client. e.g. "kubernetes"
28
+
29
+
Settings may differ from language to language. Refer to language script's help page for
0 commit comments