Grigoris Thanasoulas 0ffb80637b Show progress of repo cloning (#230)
Show progress of 'git clone' command so that it is apparent the command
is running and the program is not stuck. This is especially helpful if
the user is running on a slow internet connection.

Signed-off-by: Grigoris Thanasoulas <gregth@arrikto.com>

Signed-off-by: Grigoris Thanasoulas <gregth@arrikto.com>
2022-10-20 11:22:59 -07:00
2021-11-05 13:46:41 -07:00
2017-04-28 16:06:25 -07:00
2018-08-20 20:53:13 -07:00
2017-03-23 13:27:24 -07:00
2018-06-27 06:54:47 -07:00

gen

Common generator scripts for all client libraries

Badges

Client Support Level

Client Support Level

Client Support Level

Generating a client

To generate a client, first make sure the client generator exists. For any language other than go, check openapi/ folder for a script with ${CLIENT_LANGUAGE}.sh and run this command:

${CLIENT_LANGUAGE}.sh OUTPUT_DIR SETTING_FILE

SETTING_FILE is a bash script exporting required setting to generate a client. These are normally:

  • KUBERNETES_BRANCH: The kubernetes branch to get OpenAPI spec from. e.g. "master"
  • CLIENT_VERSION: Client version string. e.g. "1.0.0b1"
  • PACKAGE_NAME: Package name for the generated client. e.g. "kubernetes"

Example settings file for python-client:

export KUBERNETES_BRANCH="master" export CLIENT_VERSION="8.0.0b1" export PACKAGE_NAME="client"

Note: For generating the client for any language, the PACKAGE_NAME should be "client". You can use the latest version for the CLIENT_VERSION. It's displayed here for the python-client ( https://github.com/kubernetes-client/python ), and similarly for other language clients.

Recommended structure is to generate client in a folder called kubernetes at the root of the client repo and put all settings in a file named settings at the root of the repo. If you followed these recommendations, you can simply run autoupdate script anywhere inside the client repo:

cd ${CLIENT_ROOT}/...
${GEN_REPO_ROOT}/openapi/autoupdate.sh

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.

Description
No description provided
Readme Apache-2.0 323 KiB
Languages
Shell 67.4%
Python 30.2%
Dockerfile 2.4%