This guide walks you through setting up a local development environment
for NVKE and verifying that the modules build and test cleanly. The repository is
a Go workspace of several modules, listed in go.work. The repository README
says what each one is.
| Tool | Version | Install |
|---|---|---|
| Go | 1.26+ | https://go.dev/dl/ |
| Docker | 24+ | https://docs.docker.com/get-docker/ |
| Flox (optional) | latest | https://flox.dev/ — pins the whole toolchain, repository-wide |
| GNU Make | 4.0+ | macOS ships 3.81; brew install make gives you gmake |
A newer Go than 1.26 is fine. make pins GOTOOLCHAIN to the version go.work
declares and fetches it if needed, so builds do not depend on which Go is on your
PATH. Building with go directly, outside make, does — and a toolchain newer
than the declared one panics at startup with a strcase.UnicodeVersion mismatch.
git clone https://github.com/dsx-ai-factory/nvke.git
cd nvke
controller/builds without NVIDIA credentials. All of its dependencies are public. A cold build needs access to the public Go module proxy; from the repository root,make buildcompiles all thirteen modules. See AGENTS.md.
The repository uses Flox to pin its toolchain, in one environment at the root that serves every module. Activate it from anywhere in the tree:
flox activateIt is optional. Every target runs from whatever is on your PATH without it, and
a target that needs a missing tool says which one and how to install it.
make -C controller build # → controller/bin/controllermake -C controller lint # golangci-lint (20 min timeout)
make -C controller fmt # gofumpt + goimportsmake -C controller test # unit tests with coverageIf you change controller/api/openapi.yaml, regenerate Go bindings:
make -C controller generateNever hand-edit *.gen.go files — they will be overwritten.
kind create cluster # the NVKE controller watches a cluster
make -C controller run-local # Postgres, Temporal, then the controllerSwagger is on http://localhost:8080/api/docs/. Infrastructure credentials are configured on the Cluster API provider rather than the controller.
first-cluster.md covers this path in full, and goes on to tenant clusters.
The source lives in agent/. The binary installed on a node is called
nvke-agent.
cd agent
make build # cross-compiles for linux; a host go build on macOS
# produces a binary no node can run
go test ./... # or: make testnvke-agent and spire-agent must be present on each managed node before
the NVKE controller can communicate with it. The binaries are typically
pre-built into the OS image or added via cloud-init — the controller does
not install them. See agent/AGENTS.md for the full build, proto and test
commands.
- Read
docs/architecture.mdfor a system overview - Read
controller/AGENTS.mdfor AI-assisted development tips - See
CONTRIBUTING.mdfor the PR workflow and code standards