Skip to content

test(e2e): port Kubernetes driver tests from e2e/rust to drivers/kubernetes - #6215

Draft
matthewgrossman wants to merge 2 commits into
mainfrom
test/6213-port-kubernetes-tests/matthewgrossman
Draft

matthewgrossman wants to merge 2 commits into
mainfrom
test/6213-port-kubernetes-tests/matthewgrossman

Conversation

@matthewgrossman

Copy link
Copy Markdown
Member

Summary

Port the Kubernetes tests in e2e/rust to a testkit driver suite, tests/suites/drivers/kubernetes, with a shared tests/support/kube crate. Draft: more ports land as follow-up commits on this branch.

Related Issue

Closes #6213
Part of #5297

Changes

  • tests/support/kube: a Rust kube client built only from OPENSHELL_TEST_KUBECONFIG, OPENSHELL_TEST_KUBE_NAMESPACE and OPENSHELL_TEST_KUBE_RELEASE. It never reads KUBECONFIG or ~/.kube/config.
  • The tmachine k3s and k3s-ha installers publish those variables and a kubeconfig the test user can read.
  • tests/suites/drivers/kubernetes is its own workspace, wired into the format, lint, lockfile-alignment, bundle and cache lists like drivers/docker.
  • Ported: kubernetes_runtime_reconcile::start_refreshes_stale_bootstrap_image → reconcile.rs. Dropped old_and_new_gateways_can_restart_the_same_sandbox (ignored; no lane ran it).

CI rows

Test Rows
kubernetes-reconcile ubuntu-k3s/k3s, ubuntu-k3s/k3s-ha

Testing

  • cargo clippy and cargo fmt --check on the new workspaces
  • E2E rows in CI

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

…cile test

Add tests/suites/drivers/kubernetes and tests/support/kube, a Rust kube
client built only from OPENSHELL_TEST_KUBECONFIG and the release namespace.
The k3s and k3s-ha installers publish both, and CI runs the suite on them.

Port start_refreshes_stale_bootstrap_image from e2e/rust and drop
old_and_new_gateways_can_restart_the_same_sandbox, which no lane ran.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 3, 2026
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(e2e): port Kubernetes driver tests from e2e/rust to drivers/kubernetes

1 participant