kubernetes-client / gen

Common generator scripts for all client libraries
Apache License 2.0
148 stars 145 forks source link

Support client generation for custom resources #175

Closed LittleBaiBai closed 3 years ago

LittleBaiBai commented 3 years ago

Currently the java_crd_cmd.sh script only generates models for CRD but not the API clients. It would be great to also generate API clients for custom resources so we don't need to use GenericKubernetesApi or CustomObjectsApi in our controller code.

The generator knows how to generate API client for native kubernetes resources, so we can update preprocess_spec.py to keep the API endpoints for custom resources in CRD_MODE.

brendandburns commented 3 years ago

Closing this issue since #176 merged.