Repository navigation
test(e2e): port Kubernetes driver tests from e2e/rust to drivers/kubernetes - #6215
Draft
matthewgrossman wants to merge 2 commits into
Draft
matthewgrossman wants to merge 2 commits into
matthewgrossman wants to merge 2 commits into
Conversation
…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>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port the Kubernetes tests in
e2e/rustto a testkit driver suite,tests/suites/drivers/kubernetes, with a sharedtests/support/kubecrate. Draft: more ports land as follow-up commits on this branch.Related Issue
Closes #6213
Part of #5297
Changes
tests/support/kube: a Rustkubeclient built only fromOPENSHELL_TEST_KUBECONFIG,OPENSHELL_TEST_KUBE_NAMESPACEandOPENSHELL_TEST_KUBE_RELEASE. It never readsKUBECONFIGor~/.kube/config.k3sandk3s-hainstallers publish those variables and a kubeconfig the test user can read.tests/suites/drivers/kubernetesis its own workspace, wired into the format, lint, lockfile-alignment, bundle and cache lists likedrivers/docker.kubernetes_runtime_reconcile::start_refreshes_stale_bootstrap_image→reconcile.rs. Droppedold_and_new_gateways_can_restart_the_same_sandbox(ignored; no lane ran it).CI rows
kubernetes-reconcileubuntu-k3s/k3s,ubuntu-k3s/k3s-haTesting
cargo clippyandcargo fmt --checkon the new workspacesChecklist