# terdut-operator Kubebuilder/controller-runtime operator for terdut-server. See `DESIGN.md` for the settled design (CRD catalog, reconciliation semantics, bootstrap/auth, RBAC) and `ROADMAP.md` for the staged build plan this repo is following. `README.md` stays the short pitch. ## Checks `make fmt lint test helm-lint` is the CI gate (`.gitea/workflows/ci.yaml`'s `test`, `security` and `chart` jobs call these targets rather than restating them, same convention as terdut-server). `test` chains through the Kubebuilder-scaffolded `manifests`/`generate` (`controller-gen`) and `setup-envtest` targets automatically — everything needed lands in `bin/` (gitignored) on first run, no separate tool install required beyond Go itself and network access to `proxy.golang.org`/`storage.googleapis.com`. `security` runs `make security-go`/`security-secrets` (govulncheck/gitleaks), same as terdut-server's own `security` job. The kubebuilder-scaffolded `make test-e2e` (a disposable, generic smoke test) is separate from the real golden-path `kind` e2e pass ROADMAP.md's Stage 5 describes (create every CRD kind, verify against terdut-server's own API, delete, verify gone) — the latter is a manual pass run and recorded in ROADMAP.md, not a CI job, matching Stage 1-4's own precedent of validating against a real cluster outside CI. ## Release Wired as of Stage 5 (ROADMAP.md): `.release.conf`, `make release-vars`/`helm-lint`/ `push`/`helm-package`/`helm-push`/`release`, and `.gitea/workflows/release.yaml` (`test` → `image`/`chart` → `scan-image`) all follow terdut-server's established shape — see that repo's Makefile/`.release.conf` for the shared reasoning, not restated here. The chart is `charts/terdut-operator` (via kubebuilder's own `helm/v2-alpha` plugin, regenerate with `kubebuilder edit --plugins helm.kubebuilder.io/v2-alpha --output-dir charts --force` after `config/` changes, then re-review — `--force` does not touch `Chart.yaml` but does touch `values.yaml`, which carries hand-written additions, most importantly the optional `terdutServer` block, DESIGN.md §10). It installs the operator + CRDs + RBAC, and optionally one `TerdutServer` CR (`terdutServer.enabled`, off by default). **One manual step the release skill's own automation does not cover**: `release-preflight` expects an existing `terdut-operator/` entry under `Ryuvia/charts` to bump on release (steps 8-10 of the skill). There is no such entry yet — this repo's first-ever release can publish its own image and chart (the `test`/`image`/`chart`/`scan-image` jobs), but the wrapper-chart bump and PR will fail until someone creates that initial wrapper entry in `Ryuvia/charts` by hand, the same one-time step every other onboarded repo already had done for it before its own first release. That's a deliberate decision to deploy this operator for real, not something to do as a side effect of finishing this stage.