python-k8sclient 0.4.0

Last updated:

0 purchases

python-k8sclient 0.4.0 Image
python-k8sclient 0.4.0 Images
Add to Cart

Description:

pythonk8sclient 0.4.0

=============================================python-k8sclient - Kubernetes API client code=============================================Overview--------This is Kubernetes API python client code. This code is generated byswagger-codegen. Kubernetes provide swagger-spec to generate client code fordifferent versions. The specs live in Kubernetes repo.* Free software: Apache license* Documentation: http://docs.openstack.org/developer/python-k8sclient* Source: http://git.openstack.org/cgit/openstack/python-k8sclient* Bugs: http://bugs.launchpad.net/python-k8sclientSee also--------* swagger-codegen: https://github.com/swagger-api/swagger-codegen* Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-specPrerequisites-------------You need to install required packages for swagger codegen. Please refer to`<https://github.com/swagger-api/swagger-codegen#prerequisites>`_Steps to generate API client code---------------------------------Steps to generate Kubernetes client code for v1:* Clone the python-k8sclient repo:: git clone https://git.openstack.org/openstack/python-k8sclient* Clone the swagger-codegen repo. It is recommended to checkout a release (e.g. v2.1.3) instead of using the master branch:: git clone https://github.com/swagger-api/swagger-codegen.git cd swagger-codegen/ git checkout tags/v2.1.3* Build swagger-codegen:: mvn package* Update the v1.json from latest Kubernetes release:: curl -o ./k8sclient/templates/v1.json https://raw.githubusercontent.com/kubernetes/kubernetes/v1.2.2/api/swagger-spec/v1.json* Run below command to generate the API client code for Kubernetes:: cd .. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ generate \ -i ./k8sclient/templates/v1.json \ -l python -o ./KubernetesClientCodeNow you can check the code at location ./KubernetesClientCode.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.