Skip to content

refactor(compute): remove legacy host users encoding - #3248

Open
drew wants to merge 3 commits into
mainfrom
codex/2861-remove-legacy-host-users
Open

refactor(compute): remove legacy host users encoding#3248
drew wants to merge 3 commits into
mainfrom
codex/2861-remove-legacy-host-users

Conversation

@drew

@drew drew commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

🏗️ build-from-issue-agent

Summary

Remove the Kubernetes compute driver's legacy platform_config.host_users fallback so portable user-namespace intent is represented only by typed DriverSandboxTemplate.user_namespaces.

Related Issue

Closes #2861

Changes

  • crates/openshell-driver-kubernetes/src/driver.rs: resolve user namespaces from the typed field or driver default only, remove the unused legacy boolean parser, and enforce that legacy opaque input is ignored.

Deviations from Plan

Documentation updates were deferred.

Testing

  • mise run pre-commit passes
  • mise run test passes with the machine's system gateway registry isolated through OPENSHELL_SYSTEM_GATEWAY_DIR
  • Unit tests added/updated
  • E2E tests not required; no files under e2e/ changed

Tests added:

  • Unit: Updated the Kubernetes user-namespace compatibility test to prove platform_config.host_users is ignored; all six user-namespace tests pass.
  • Integration: Existing shared in-process/UDS implementation coverage; no new fixture needed.
  • E2E: N/A — typed Kubernetes rendering behavior is unchanged and no E2E files changed.

Checklist

  • Follows Conventional Commits
  • Commit is signed off (DCO)

Closes #2861

Remove the Kubernetes driver fallback for platform_config.host_users and document the typed-only user namespace contract for 0.1.0.

Signed-off-by: Drew Newberry <anewberry@nvidia.com>
@github-actions

Copy link
Copy Markdown

drew added 2 commits September 9, 2026 22:24
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>

@johntmyers johntmyers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gator-agent

PR Review Status

The code-only review found no blocking implementation defects. The compatibility change is project-valid under maintainer-authored issue #2861, but its required migration and compute-driver compatibility documentation is absent from this patch.

Action required: @drew, please add the migration note and compute-driver compatibility guidance required by #2861, or provide a clear maintainer rationale for why those docs are intentionally unnecessary.

Blocking findings:

  • No blocking code findings remain.

Carried findings:

  • None.
Gator metadata
  • Validation: Maintainer-authored PR implements the focused typed-only user-namespace transition tracked by maintainer-authored issue #2861.
  • Docs: Missing for a published compute-driver compatibility and sandbox-behavior change; #2861 explicitly requires migration notes and a compatibility matrix.
  • Checks: Current-head Branch Checks, Helm Lint, Trivy Changes, and DCO are green.
  • E2E: test:e2e is required for the Kubernetes driver behavior change, but dispatch waits until review feedback is resolved.
  • Head SHA: 36951b129091a0e25ee8570b67c1aaa8b4c83ae4
  • Base SHA: a0814443f19c07102b19ff09d6ead3d3ba59f9c5
  • Merge base SHA: a0814443f19c07102b19ff09d6ead3d3ba59f9c5
  • Patch ID: 5512eae71db4f8549efa53b74b149c42e38b6bbb
  • Gator payload: 9
  • Review mode: initial
  • Previous reviewed SHA: none
  • Review budget exhausted: no
  • Maintainer decision required: no
  • Next state: gator:in-review

@johntmyers johntmyers added the gator:in-review Gator is reviewing or awaiting PR review feedback label Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gator:in-review Gator is reviewing or awaiting PR review feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(compute): remove legacy host_users platform configuration

2 participants