-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAPI: Investigate kubernetes model code generation #6080
Comments
Status updateKubernetes typesGeneration from OpenAPI/Swagger JSON works and generates almost identical models for all of the Kubernetes types. OpenShift typesGeneration works, however models differ especially in class names. The JSON produced by the OpenShift cluster contains mostly inlined schema definitions (as opposed to the Kubernetes one which has Component schema definitions for every class). This poses 2 main problems:
Blocker
OpinionEven if there are going to be some breakages for users, this will be released in a major version. Generation using this approach is extremely easy and has a very low maintenance cost. I'd seriously consider for the migration to the new approach. |
After internal discussion, it seems clear that we should go forward with this initiative. |
Description
Investigate possible improvements to the way we generate code today.
For example, a combination of Go type-inference plus OpenAPI processing would allow to include JavaDoc to the current types.
Further exploration might also allow to use OpenAPI exclusively to improve generation performance.
The text was updated successfully, but these errors were encountered: