gameplane / docs
DEVELOP

Local development setup

Build Gameplane on a host or devcontainer, then run the full stack against kind or a selected remote cluster.

Local Developmentv0.414 MIN
Desired state vs. observed state

Desired state belongs in CRD spec; observed state and conditions belong to controllers.

Workspace map

The workspace joins runtime components, shared libraries, optional services, packaging, e2e infrastructure, and submodules.

Go modulesgo.work joins operator, API, agent, shared Go modules, MCP, and tests.
Web dashboardweb is React; charts and deploy own packaging and local orchestration.
Submodulesmodules and website are separately versioned gitlink repositories.

After cloning, run git submodule update --init modules. The split components (mcp-server/, audit-syslog-bridge/, tunnel/ and capture-sidecar/) are initialised separately with hack/submodules.sh init. make images and make dev-up also initialise them on demand.

Cluster development loop

The Make targets create local infrastructure, build and load images, push modules, install the chart, and run the web UI.

make dev-upCreates kind and the local OCI registry.
make web-devRuns Vite on 5173 with REST and WebSocket proxying.
make dev-downRemoves kind; CLUSTER=remote runs `helm uninstall` instead.

Dev containers

The repository ships one dev container profile per area, so a container installs only what your change needs. Pick it in VS Code with “Dev Containers: Reopen in Container”, or under “Dev container configuration” in Codespaces; the full profile is the default.

Component profilesweb, api, operator, agent, go-services, website, and modules: one area each.
Part profilesdashboard-api and control-plane: a few areas plus kind for a live cluster. modules-gp: modules and gp-module, without kind.
Full profileEverything, for cross-cutting changes.

The profile table in docs/contributing.md lists what each profile installs, its setup time, and when to use it. A Make target that needs a missing tool stops with a need: message naming the profile to reopen in.

Debug the environment

Keep host and cluster registry addresses, kube context, namespaces, image tags, and Helm values aligned.

LOCAL LOOP
01   git submodule update --init modules && hack/submodules.sh init
02   make dev-up && make web-dev
03   make dev-down # or CLUSTER=remote make dev-up