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.
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 useGenericKubernetesApi
orCustomObjectsApi
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.