Skip to content

fix(python): support Kubernetes call_api compatibility - #7

Closed
stellan-lee wants to merge 2 commits into
mainfrom
codex/python-kubernetes-client-compat
Closed

fix(python): support Kubernetes call_api compatibility#7
stellan-lee wants to merge 2 commits into
mainfrom
codex/python-kubernetes-client-compat

Conversation

@stellan-lee

@stellan-lee stellan-lee commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • explicitly support the legacy response_type call contract from kubernetes==28.1.0
  • support the breaking response_types_map contract in kubernetes==36.0.3, including its required integer-status .get(...) lookup
  • reject unknown ApiClient.call_api signatures with a clear compatibility error
  • test both exact client versions in CI while retaining kubernetes>=28.1.0,<37

Validation

  • kubernetes==28.1.0: 10 tests and 4 subtests passed
  • kubernetes==36.0.3: 10 tests and 4 subtests passed
  • 4 pre-existing pytest return-value warnings in ConfigMap tests on each version
  • independent code review: no actionable findings
  • Python compilation and git diff --check passed

Scope

Python SDK only. No Go changes.

Exercise the legacy 28.1.0 client and latest stable 36.0.3 client in CI. Strengthen request-contract assertions so signature adaptation and REST behavior cannot drift independently.
Handle the response_type to response_types_map break explicitly for Kubernetes clients 28.1.0 and 36.0.3. Exercise the modern status-map lookup contract and reject unknown client signatures clearly.
@stellan-lee stellan-lee changed the title test(python): cover Kubernetes client compatibility fix(python): support Kubernetes call_api compatibility Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant