Skip to content

chore(deps): upgrade Kubernetes client to kube 5 - #5646

Merged
SDAChess merged 2 commits into
mainfrom
chore/2019-update-kube-client/SDAChess
Nov 18, 2026
Merged

SDAChess merged 2 commits into
mainfrom
chore/2019-update-kube-client/SDAChess

Conversation

@SDAChess

@SDAChess SDAChess commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Upgrade the Kubernetes client stack from kube 0.99 / k8s-openapi 0.24 to kube 5.0.0 / k8s-openapi 0.29, selecting the Kubernetes 1.33 API schema. This also removes kube-client's deprecated serde_yaml dependency.

Related Issue

Closes #2019

Changes

  • Adapt boxed API errors, Jiff timestamps, and optional NetworkPolicy selectors to the new APIs.
  • Refresh affected Cargo lockfiles, keeping the kube family aligned at 5.0.0 and Jiff at 0.2.38.
  • Set the minimum tested Kubernetes version to 1.33 and pin the conformance baseline to K3s 1.33.13+k3s2 with a verified installer checksum.

Release Notes

Kubernetes 1.33 is the minimum tested version. Older cluster versions are untested; compatibility is not guaranteed.

Testing

  • Local checks appropriate to the affected code and behavior pass
  • Existing unit tests updated and passing
  • Kubernetes E2E validation through PR CI

Passed all-target compilation and Clippy with warnings denied for the Kubernetes compute driver, Kubernetes Secrets driver, and server. All 443 selected unit tests pass: 335 compute-driver, 18 Kubernetes Secrets, 17 peer-authentication, 19 certificate-generation, and 54 OIDC tests.

Formatting, tracked lockfile consistency/alignment, crypto-policy regression fixtures, and dependency license/ban/source checks pass. Fern validation and docs navigation pass; the K3s playbook YAML and installer checksum were verified. Validation used Rust 1.95; dependency resolution selected Rust 1.94-compatible versions.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@SDAChess SDAChess added test:e2e Requires end-to-end coverage dependencies Pull requests that update a dependency file test:e2e-kubernetes Requires Kubernetes end-to-end coverage labels Nov 17, 2026
@github-actions

Copy link
Copy Markdown

Label test:e2e applied for b0d7ab6. Open the existing run and click Re-run all jobs to execute with the label set. The run will execute the standard E2E suite after building the required gateway, sandbox, and supervisor images once. The matching required CI gate status on this PR will flip green automatically once the run finishes.

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 17, 2026
@github-actions

Copy link
Copy Markdown

Label test:e2e-kubernetes applied for b0d7ab6. Open the existing run and click Re-run all jobs to execute with the label set. The run will execute Kubernetes HA and credential-driver E2E after building the required gateway, sandbox, and supervisor images once. This is an optional proof-of-life suite; failures are visible in the workflow run but do not publish a required CI gate status.

@github-actions

Copy link
Copy Markdown

@SDAChess SDAChess added area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. labels Nov 17, 2026
@SDAChess
SDAChess force-pushed the chore/2019-update-kube-client/SDAChess branch from b0d7ab6 to e2ca1cb Compare November 17, 2026 17:14
@github-actions

Copy link
Copy Markdown

Compatibility review (advisory)

New or updated breaking changes; see the full report for all findings.

1. helm — No explicit risk acceptance found

The Kubernetes deployment prerequisites change from supported Kubernetes 1.29+ to minimum-tested 1.33 with compatibility explicitly not guaranteed for older clusters.

  • Impact: Existing Helm deployments on Kubernetes 1.29–1.32 lose their documented compatibility guarantee during a patch upgrade, even though runtime failure on those clusters is not established.
  • Action: Preserve Kubernetes 1.29–1.32 compatibility and its documented guarantee in v0.1.9; defer any support withdrawal to a minor release with notice and actionable cluster-upgrade guidance.
  • PR: chore(deps): upgrade Kubernetes client to kube 5 #5646
Review details
  • Execution: complete
  • Candidate: PR #5646 (20693a83f1b2603cf4dcfd185f0a4d52b902a131)
  • Baseline: 624aceea32934f73c350ede3f2185880816a030c (624aceea32934f73c350ede3f2185880816a030c)
  • Reviewed: rust-sdk, python-sdk, typescript-sdk, api-behavior, cli, configuration, policy, helm, state

Advisory review; publication gates are unchanged.

Branch check run

alangou
alangou previously approved these changes Nov 17, 2026
@SDAChess
SDAChess enabled auto-merge November 17, 2026 17:21
@SDAChess
SDAChess added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@SDAChess
SDAChess force-pushed the chore/2019-update-kube-client/SDAChess branch from e2ca1cb to b987d52 Compare November 18, 2026 13:41
@SDAChess SDAChess added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. and removed area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. labels Nov 18, 2026
@SDAChess
SDAChess merged commit 9ec37d2 into main Nov 18, 2026
267 of 274 checks passed
@SDAChess
SDAChess deleted the chore/2019-update-kube-client/SDAChess branch November 18, 2026 15:15
cv added a commit to NVIDIA/NemoClaw that referenced this pull request Nov 24, 2026
)

Moves NemoClaw's OpenShell pins from v0.1.9 to v0.1.10, whose project
moved to `ai-openshell/openshell` and publishes its images and chart on
Quay, upgrades the bundle's OpenTofu to 1.13.10, and updates Rust crates
within the workspace's constraints. A managed `kubernetes` or
`openshift` gateway now reports no sandbox service URLs, because the
v0.1.10 chart turns off gateway service routing.

## Problem

NemoClaw pins OpenShell v0.1.9 (`ce58cf8`). v0.1.10 (`152c59d`) is the
latest release, and it changes what NemoClaw pins and how a Kubernetes
gateway behaves:

- The repository moved from `NVIDIA/OpenShell` to
`ai-openshell/openshell`. The gateway, supervisor and sandbox images and
the chart publish to `quay.io/ai-openshell`, the chart is renamed
`oci://quay.io/ai-openshell/charts/openshell`, and GHCR has no 0.1.10
tags.
- The chart sets `enable_gateway_service_routing: false`
(ai-openshell/openshell#5672), so a Helm gateway publishes no
gateway-routed service URLs.
- `openshell-policy`'s `PolicyViolation` gained five Cedar and
endpoint-settings variants, so NemoClaw's exhaustive description of
OpenShell's violations no longer compiles.
- OpenShell now refreshes an expired policy DNS mapping before
connecting (ai-openshell/openshell#5650), which removes the limit that
an OpenClaw agent's model request failed after a DNS answer's TTL.

OpenTofu 1.13.10 is a patch release built with Go 1.27.4 for
GO-2026-6859.

## Change

- **Pins:** the Cargo source and revision of `openshell-core`,
`openshell-sdk` and `openshell-policy`, and of the vendored SDK's
`openshell-core` and `openshell-crypto`; in `versions.json`, the
version, revision, Linux CLI archives, the Quay gateway, supervisor and
sandbox images, and the renamed chart; the managed-gateway reference, a
contract test and the gateway contract module, which carry the image
digests. The CLI checksums come from the release's
`openshell-checksums-sha256.txt`, and the image and chart digests from
Quay's `0.1.10` tags; GHCR's `0.1.9` tags match the previous pins. The
OpenTofu checksums come from its GPG-signed `SHA256SUMS`.
- **Vendored SDK:** upstream changed `src/client.rs`, `src/types.rs`
(the new `application_service_urls` and `gateway_service_urls`) and
`tests/client_mock.rs`, copied unchanged. The SDK manifest still enables
`openshell-core`'s default features, including telemetry, so the
manifest patch stays; `NOTICE.md` records the new source and revision.
The SDK integration limits in `internal-docs/design/architecture.md`
still hold at v0.1.10 and cite that revision.
- **Policy violations:** NemoClaw describes the five new violations.
NemoClaw writes no Cedar policy or `endpoint_settings`, so none of them
arises from a NemoClaw document.
- **Service URLs on Kubernetes:** NemoClaw leaves the chart's default.
The Kubernetes guide says a managed gateway reports no service URLs and
how to turn routing on with `enable_gateway_service_routing: true` in
`spec.gateway.config`, which passes through to the chart; the
external-ingress guidance and the limit for #14316 say the same. The
fake gateway in the test fixtures reports each URL as gateway-routed, as
a Docker gateway does.
- **Limits:** the DNS TTL limit is removed.
- **Docs:** OpenShell links move to `ai-openshell/openshell` at v0.1.10;
each path and anchor exists there, and the three configuration line
ranges in the sandbox network guide move to the same text.
- **Rust crates:** `cargo update`. `url` 2.5.9 now percent-encodes `^`
in a path, as WHATWG's URL standard does, so an MCP endpoint whose path
holds `^` passed NemoClaw's check; the existing
`mcp_endpoints_reject_paths_openshell_rewrites_before_matching` test
failed, and NemoClaw now checks the URL as written.
- **Release notes:** the v0.1.10 changes users see, and the service URL
change as a breaking change.

## OpenShell 0.1.10 Changes Checked

| Change | Decision |
|---|---|
| Registry and chart move, repository transfer
(ai-openshell/openshell#5822, ai-openshell/openshell#5823,
ai-openshell/openshell#5833) | Followed in every pin and link. |
| Helm service routing off by default (ai-openshell/openshell#5672) |
Kept OpenShell's default and documented the setting; NemoClaw doesn't
override chart defaults it doesn't own. |
| Application origins, `domain` → `base_url`
(ai-openshell/openshell#4956) | No change: NemoClaw sets no app
listener, and apply reports OpenShell's preferred `url`, which stays the
gateway URL when no origin is configured. |
| TypeScript SDK move (ai-openshell/openshell#5685) | No change:
NemoClaw uses the Rust SDK. |
| Kubernetes 1.33 minimum tested (ai-openshell/openshell#5646) | No
change: CI's kind node runs 1.37, and OpenShell still tests Agent
Sandbox 1.0.3. |
| Policy DNS TTL refresh (ai-openshell/openshell#5650) | Removed the
limit; NemoClaw had no workaround. |
| Sandbox restart `ContainerExited`, same-name recreate on Kubernetes,
multi-replica fixes, IPv6, process limits and signals, idle-connection
and 502 fixes | No NemoClaw code works around them; listed in the
release notes. |
| Docker persistent `/sandbox` and image updates of a stopped sandbox
(ai-openshell/openshell#5617) | Not adopted here: it needs
`enable_sandbox_updates` and `persist_workspace`, applies only to new
workspaces, and requires a numeric `USER` in the image, so it is a
feature change of its own. |
| Workspace secrets, GitHub App tokens, SPIFFE broker, OAuth
`client_secret_basic` and `resource`, `/**` path templates, OTLP
metrics, audit records, IPv6 listeners, supervisor pool sizing | Gateway
or provider settings that `spec.gateway.config` or operator-managed
providers can set; NemoClaw adds no wrapper. |
| `openshell policy lint` (ai-openshell/openshell#5358) | No change:
NemoClaw validates policies in-process with `openshell-policy`. |
| Cedar policies | Development builds only; no change. |
| OpenShift UID and `fsGroup` (ai-openshell/openshell#5483) | Still
open, so the `openshift` target keeps nulling the chart's IDs. |
| Gateway restart leaves sandboxes in `Error`
(ai-openshell/openshell#4910) | Still open; the limit stays. |

## Other Pins

- NeMo Fabric is already at its latest release, v0.7.0, and its OpenClaw
adapter supports only OpenClaw 2026.9.34 and its Hermes adapter Hermes
v0.22.7, so the harness images stay; Fabric owns the harness versions
its adapters support.
- The Docker and Helm providers, kind, nextest, Protocol Buffers, Rust
and vLLM are at their latest releases.
- Container base images, Bun, uv and Ollama move in a stacked pull
request, which needs image builds of its own.
- llama.cpp's server image and the NIM image stay: each update needs its
own notices and a GPU run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. dependencies Pull requests that update a dependency file state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(deps): update kube client dependencies

2 participants