[pull] master from kubernetes-client:master#121
Merged
Conversation
OpenAPI Generator v7 removed python-legacy, preventing the synchronous Kubernetes client from moving beyond v6.6.0 and inheriting the modern Python generator's native type information. Regenerate with the released v7.24.0 Python generator, declare its runtime requirements, package py.typed, and refresh the Sphinx API index. Adapt dynamic, stream, watch, OIDC, YAML, leader-election, and example callers to the modern transport and legacy-compatible response behavior. Remove obsolete post-generation hotfixes while retaining the small REST correction that selects strategic merge for built-in object patches and JSON Patch for operation lists. Preserve dict, JSON Patch, and generated model PATCH bodies, Kubernetes IntOrString and CRD JSON-schema representations, and both successful Namespace-delete response shapes. Load generated APIs and models on first use, reducing cold import from about 1.2 seconds to 0.16 seconds while preserving public imports, constructor signatures, importlib metadata, and first-call validation. Defer the remaining Pydantic call validators and restore DynamicClient's JSON discovery default to avoid wildcard Content-Type on discovery. Correct invalid exec and metadata test inputs, cover these behaviors and asynchronous YAML creation with request-level compatibility tests, and document the remaining synchronous breaking changes in the changelog.
Regenerate the synchronous client with the modern Python generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )