Skip to content

Commit 70519cb

Browse files
committed
test(e2e): cover the computeplane module end to end
The module had render tests only. Nothing checked that turning it on in a tenant yields a working cluster: the Kamaji control plane, a worker pool shaped by the module's allowlist, an admin kubeconfig the tenant cannot read, the pinned cert-manager and ingress-nginx addons running inside the cluster, and a teardown that removes the in-cluster addons before the control plane and leaves nothing behind. The suite runs the module in its own child tenant so the shared tenant-test is never toggled. It supplies its own pool because the default md0 asks for the replicated StorageClass, which the container lane does not have. On failure it prints the worker image source, since the pool allowlist drops talos and a ComputePlane worker cannot use the in-sandbox image cache. The computeplane source depends on the kubernetes application and runs its own ingress-nginx, so an ingress-nginx change now selects this suite too. It also owns apps/kubernetes-nodes, which used to reach no suite and run everything; kubernetes-nodes-application now maps to both kubernetes suites and computeplane, so a pool chart change keeps the suites that create KubernetesNodes natively. The suite creates a TenantControlPlane like the kubernetes pair, so it shares their leak-guard exemption for the stuck finalizer. Signed-off-by: Aleksei Sviridkin <[email protected]> Assisted-by: LLM
1 parent bc400df commit 70519cb

5 files changed

Lines changed: 495 additions & 3 deletions

File tree

‎hack/e2e-chainsaw/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ hack/e2e-chainsaw/
1818
└── ...
1919
```
2020

21-
Suites: `postgres`, `bucket`, `mariadb`, `mongodb`, `redis`, `valkey`, `qdrant`, `clickhouse`, `kafka`, `rabbitmq`, `etcd`, `openbao`, `harbor`, `foundationdb`, `external-dns`, `kuberture`, `vminstance`, `gateway`, `opensearch`, `kubernetes-latest`, `kubernetes-previous`, `securitygroup`.
21+
Suites: `postgres`, `bucket`, `mariadb`, `mongodb`, `redis`, `valkey`, `qdrant`, `clickhouse`, `kafka`, `rabbitmq`, `etcd`, `openbao`, `harbor`, `foundationdb`, `external-dns`, `kuberture`, `vminstance`, `gateway`, `opensearch`, `kubernetes-latest`, `kubernetes-previous`, `securitygroup`, `computeplane`.
2222

2323
## What Chainsaw buys over the BATS suite
2424

‎hack/e2e-chainsaw/_lib/leak-allowlist.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@
1111
# is deleted, holding its apiserver pods. Both suites create one through
1212
# hack/e2e-chainsaw/_lib/run-kubernetes.sh; the stuck finalizer was seen in
1313
# kubernetes-latest only, but nothing in the defect is specific to that suite.
14+
# computeplane creates the same TenantControlPlane through its module.
1415
kubernetes-latest cozystack/cozystack#4489
1516
kubernetes-previous cozystack/cozystack#4489
17+
computeplane cozystack/cozystack#4489

0 commit comments

Comments
 (0)