Skip to content

[codex] Support kubernetes v36 in Iris#5917

Closed
yonromai wants to merge 1 commit into
mainfrom
codex/iris-k8s36-compat
Closed

[codex] Support kubernetes v36 in Iris#5917
yonromai wants to merge 1 commit into
mainfrom
codex/iris-k8s36-compat

Conversation

@yonromai
Copy link
Copy Markdown
Contributor

@yonromai yonromai commented May 22, 2026

Summary

  • Allow Iris to run with kubernetes==36.0.0.
  • Bridge the v36 bearer-token key change for kubeconfig and in-cluster clients.
  • Decode pod logs from raw response bytes before limit_bytes trimming.

Upstream Auth Change

kubernetes==36.0.0 changed the generated client auth lookup from authorization to BearerToken, but the released v36 config loaders still populate authorization. Iris mirrors the loaded token into both keys so generated APIs authenticate and refresh hooks keep both aliases current.

The core upstream quote is from the release-36.0 changelog: Configuration auth uses 'BearerToken' instead of 'authorization' in api_key.

Additional upstream evidence

Validation

  • cd lib/iris && uv run --group dev python -m pytest --tb=short tests/cluster/providers/k8s/test_cloud_k8s_service.py (44 passed)
  • cd lib/iris && uv run --group dev python -m pytest --tb=short tests/cluster/providers/k8s (250 passed)
  • ./infra/pre-commit.py --files lib/iris/src/iris/cluster/providers/k8s/service.py lib/iris/tests/cluster/providers/k8s/test_cloud_k8s_service.py lib/iris/pyproject.toml uv.lock (passed)
  • Manual CW kubeconfig repro lists pods in iris-ci with both auth aliases present.
  • Manual CW in-cluster probe confirmed kubernetes 36.0.0 and both auth aliases.
  • CoreWeave smoke passed on the pre-rebase equivalent patch: run 26311058587, job 77461399389.

@yonromai yonromai force-pushed the codex/iris-k8s36-compat branch from 49e2cb3 to c2e28f1 Compare May 22, 2026 16:40
@yonromai yonromai changed the title [codex] Support kubernetes v36 in Iris in-cluster auth [codex] Support kubernetes v36 auth in Iris May 22, 2026
@yonromai yonromai force-pushed the codex/iris-k8s36-compat branch from c2e28f1 to 0d08222 Compare May 22, 2026 16:59
@yonromai yonromai changed the title [codex] Support kubernetes v36 auth in Iris [codex] Support kubernetes v36 in Iris May 22, 2026
@yonromai yonromai force-pushed the codex/iris-k8s36-compat branch from 0d08222 to 84497a9 Compare May 22, 2026 20:44
@yonromai yonromai changed the base branch from main to codex/levanter-histogram-tpu-fix May 22, 2026 20:44
Base automatically changed from codex/levanter-histogram-tpu-fix to main May 22, 2026 21:05
@yonromai
Copy link
Copy Markdown
Contributor Author

🤖 Closing this draft without merging. We are keeping Iris pinned to the known-good Kubernetes Python client v35 line via #5914 and tracking the future upgrade after an upstream fixed release in #5924.

@yonromai yonromai closed this May 22, 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