Skip to content

Remove third-party lazy imports from the Python client - #2652

Open
tamird wants to merge 1 commit into
kubernetes-client:masterfrom
tamird:prototype/dependency-free-sync-generator
Open

Remove third-party lazy imports from the Python client#2652
tamird wants to merge 1 commit into
kubernetes-client:masterfrom
tamird:prototype/dependency-free-sync-generator

Conversation

@tamird

@tamird tamird commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

OpenAPI Generator v7 introduced lazy Python model and API imports through the third-party lazy-imports package. OpenAPITools/openapi-generator#24402 replaces that dependency with standard-library lazy imports.

Regenerate the synchronous Kubernetes Python client from merged generator commit 830e9d156960bb7f51a5337f31636a7e73226474, accurately recorded as 7.25.0-SNAPSHOT, and remove lazy-imports from the actual runtime requirements. Apply the existing Kubernetes REST-client patch so strategic-merge and JSON Patch use their correct wire formats.

The corresponding generator change is kubernetes-client/gen#305. #2647 updates the asyncio client independently and follows this change because kubernetes.aio first initializes the synchronous client.

/kind feature

Removed the third-party lazy-imports dependency from the Kubernetes Python client.

@kubernetes-prow kubernetes-prow Bot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Jul 27, 2026
@kubernetes-prow
kubernetes-prow Bot requested review from roycaihw and yliaog July 27, 2026 15:54
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tamird
Once this PR has been reviewed and has the lgtm label, please assign roycaihw for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 27, 2026
@tamird

tamird commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

/kind feature
/assign @yliaog

[tamirdex]

@kubernetes-prow kubernetes-prow Bot added kind/feature Categorizes issue or PR as related to a new feature. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Jul 27, 2026
@kubernetes-prow kubernetes-prow Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants