Skip to main content
FlexInfer docs

Local development

Fast build/test loops and running components locally.

Local development

Prereqs

  • Go (see services/flexinfer/go.mod)
  • Docker (optional, for image builds)
  • kubectl (for talking to a cluster)

One-time setup

Installs local tools (controller-gen, kustomize, envtest) into services/flexinfer/bin/:

cd services/flexinfer
make setup

Build binaries

cd services/flexinfer
make build-all

Outputs go to services/flexinfer/bin/.

Run tests

Fast (unit) loop:

cd services/flexinfer
make test-unit

Integration tests (envtest):

cd services/flexinfer
make test-integration

Regenerate CRDs / RBAC

If you change anything under services/flexinfer/api/ or controller markers:

cd services/flexinfer
make manifests

Generated CRDs land in services/flexinfer/config/crd/.

Run components locally

Controller manager

Runs against your current kubeconfig:

cd services/flexinfer
make run

Scheduler extender

cd services/flexinfer
go run ./cmd/flexinfer-sched --port 8082

Proxy

cd services/flexinfer
go run ./cmd/flexinfer-proxy --port 8080 --log-level debug

Install CRDs into a cluster

cd services/flexinfer
make install