Kind test suite
The Python harness is for development and regression testing. Pull requests run a targeted OpenTofu quickstart smoke only for relevant changes. The full Terraform/OpenTofu matrix runs nightly, manually and before release (or reuses verified results for the same commit). See CI and test strategy. It provisions Argo and the test fixtures, runs assertions, and can leave the cluster available for inspection.
1. Prepare the lab
Install Docker with Buildx, Kind, kubectl, Helm, Git and Python 3. Make sure Docker is running. Open an isolated terminal for the lab.
git clone https://github.com/iacstack/iac-stack-controller.git
cd iac-stack-controller
python3 -m venv .venv
. .venv/bin/activate
python -m pip install PyYAML
2. Run your first stack
python tests/e2e/run.py --engine tofu --scenario independent --keep-cluster
Use --engine terraform to run the same lab with Terraform. Select --scenario quickstart to exercise installation, upgrade, rollback, and uninstall with the Helm chart. The harness creates a unique cluster and prints its name and kubeconfig. Keep both for inspection and cleanup.
3. Follow the result
Set KUBECONFIG and LAB_CLUSTER to the values printed by the previous command.
kubectl config current-context
kubectl -n platform-system get iacstack
kubectl -n argo-workflows get workflow
kubectl -n e2e-target get configmap independent -o yaml
Look for the independent stack and its ConfigMap. The scenario also checks an input update and drift correction. Continue to Get started for the manifest-based tutorial.
4. Clean up
kind delete cluster --name "$LAB_CLUSTER"
The cluster contains the lab’s state, workloads and in-cluster fixtures. Keep it running while you work through the manual approval tutorial.