Closed
Description
Hi Kubernetes Python client developers, this is a request for comment issue. Please leave comments if you have any opinion/suggestion. Thanks!
What happened:
A majority of the code base is generated code. This repo is switching from using swagger-codegen to using openapi-generator. For more backgrounds:
- migrate from swagger-codegen to openapi-generator gen#93
- feat: switch python client to use openapi-generator gen#97
Major breaking changes were detected when we released 11.0.0a1 with openapi-generator:
The breaking changes are:
- [Major]
kubernetes.client.apis
package is renamed tokubernetes.client.api
- [Major]
kubernetes
package code now uses absolute import instead of relative import - [Minor] The
swagger_types
attribute in all models is renamed toopenapi_types
the major breaking changes come from swagger-api/swagger-codegen#6839 (comment), which is also in latest swagger-codegen. This repo didn't have these changes because we were depending on a old version of swagger-codegen.
What versions are affected?:
- All
8.0.x
,9.0.x
,10.0.x
versions are not affected 11.0.0a1
(corresponding to Kubernetes 1.15) is the only version that's affected currently- The next release
11.0.0b1
and future releases (corresponding to Kubernetes 1.15, 1.16+) will be affected.
Impact and fix:
- All clients that import
kubernetes.client.apis
must change the import tokubernetes.client.api
when upgrading to 11.0.0b1+, to avoid import error. - Clients that use relative import and patch the
kubernetes
package locally may experience unexpected import error. Clients should installkubernetes
package properly following the instructions in the Readme or the release page.
Metadata
Metadata
Assignees
Labels
Categorizes an issue or PR as actively needing an API review.Categorizes issue or PR as related to a bug.Denotes an issue or PR that has aged beyond stale and will be auto-closed.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.Denotes a PR that introduces potentially breaking changes that require user action.