- Development branch:
develop - Release branch:
main(only receives merges fromdevelopvia auto-PR) - Always branch from
origin/develop, never frommain - PRs target
develop(--base develop) - Branch naming:
feat/<topic>orfix/<topic>
git fetch origin develop
git checkout -b feat/my-feature origin/develop
# ... work ...
gh pr create --base develop- Feature/fix PRs into
develop: Use standard merge by default. Use squash only when the branch has many noisy commits that logically belong together (e.g. lots of trial-and-error or CI fix-ups). developintomain: Always rebase, so thatdevelopandmainstay identical after merge.
Follow Conventional Commits. Semantic-release on main uses these to determine version bumps.
feat: add NetworkPolicy support for Server and Database
fix: use FQDN for Database status.URL
docs: update README for CNPG setup
ci: add openvox-db to test images workflow
chore: update dependencies
refactor: simplify reconcile loop
test: add unit tests for helpers
- Lowercase subject, no trailing period
feat:triggers a minor version bumpfix:triggers a patch version bump- Append
BREAKING CHANGE:in the body for major bumps - No AI attribution trailers. Do not add
Co-Authored-By:for an AI assistant, and noClaude-Session:or comparable session links.
- Title follows conventional commit format
- Keep the title short (under 72 chars)
- Body should include a
## Summarywith bullet points and a## Test plan - Reference related issues with
Closes #<number> - PRs always target
develop, notmain - No AI attribution footers in the description ("Generated with Claude Code" or similar) and no session links. The same goes for issue and review comments. If tooling appends such a footer server-side, remove it from the body afterwards.
make generate manifests # regenerate deepcopy + CRD YAML + Helm CRDs
go build ./...
go vet ./...
go test ./internal/controller/ -v
make ci # full CI: lint + vet + test + check-manifests + vulncheck + helm-lint + helm-unittestAlways run make generate manifests after modifying api/v1alpha1/*_types.go.
Always run make check-manifests before committing to verify generated files are up to date.
api/v1alpha1/ CRD type definitions (Go structs)
internal/controller/ Reconcilers, deployment builders, rendering, tests
config/crd/bases/ Generated CRD YAML
charts/openvox-operator/ Helm chart (CRDs copied from config/crd/bases/)
charts/openvox-stack/ Example stack chart
charts/openvox-db-postgres/ Helm chart for CNPG PostgreSQL cluster
images/ Containerfiles (openvox-operator, openvox-server, openvox-db, openvox-agent, openvox-mock, openvox-e2e-code, openvox-server-reference)
tests/e2e/ Chainsaw E2E tests
cmd/ Entrypoints (operator, ENC, autosign, report, mock)
docs/ Documentation
- Shared API types:
PDBSpecandNetworkPolicySpeclive inapi/v1alpha1/server_types.go;ImageSpecandCodeSpeclive inapi/v1alpha1/config_types.go - Controller tests use the builder pattern from
testutil_test.go(newServer(),newDatabase()with option funcs likewithPDBEnabled(),withReplicas()) - Follow existing patterns when adding sub-resources to a controller:
- Add RBAC marker comment (
+kubebuilder:rbac:...) - Add
Owns(&<type>{})inSetupWithManager - Add event reason constants (
EventReasonFooCreated, etc.) - Call
r.reconcileFoo()inReconcile() - Implement
reconcileFoo(delete if disabled, create if not found, update if exists) - Implement
buildFoo(construct the desired object, set controller reference) - Add tests for creation, deletion, and any special behavior
- Add RBAC marker comment (
- No Unicode em-dashes, smart quotes, or other non-ASCII punctuation. Use plain ASCII (
-,--,',"). - CI runs a unicode-lint check that rejects zero-width characters, soft hyphens, word joiners, and similar invisible characters (potential AI watermarks).
- When in doubt, stick to plain ASCII in all files (code, docs, comments, commit messages).
docs/ is user-facing reference, not design notes: 35 pages covering every CRD
field, phase, condition and metric. Treat it as part of the API.
README.mdis the entry point - update when adding user-visible featuresCONTRIBUTING.mdcovers developer setup and workflow- No CHANGELOG - release notes are auto-generated from commit messages by semantic-release
Every change that alters observable behaviour updates the documentation in the same commit. Not in a later pass: drift found afterwards is drift that shipped, and a reader cannot tell a stale sentence from a correct one.
What to check, by kind of change:
| Change | Update |
|---|---|
| CRD field added, removed or renamed | the field table in docs/reference/<kind>.md |
A +kubebuilder:default added or removed |
the table and the prose around it - these have contradicted each other |
| New or changed condition, phase, reason | the conditions table; do not document a phase the controller never sets |
| New or removed metric | docs/guides/monitoring.md, including an alert rule where one makes sense |
| Behaviour a reader would predict wrongly | the relevant docs/concepts/ page |
| New chart value | values.yaml comments, then regenerate README.md and values.schema.json |
| Resource name, label or selector | anything in docs/ that names it - troubleshooting commands go stale silently |
The documentation had never been checked against the code before 2026-09-03, and the review that followed found examples the API server rejects, three label selectors that match nothing, a phase no controller sets and image tags that cannot exist. Each was plausible on the page.
Cheap checks worth running when touching docs:
# Manifests in the docs must be accepted by a real API server
kubectl apply --dry-run=server -f <extracted-block>.yaml
# Selectors must exist in internal/controller/labels.go
grep -rn "kubectl.*-l " docs/
# Fields documented for a kind must exist in its CRD, and vice versa
ruby -ryaml -e 'd=YAML.load_file(ARGV[0]);
acc=[]; w=lambda{|n| next unless n.is_a?(Hash);
(n["properties"]||{}).each{|k,v| acc<<k; w.call(v)}; w.call(n["items"]) if n["items"]};
d["spec"]["versions"].each{|v| w.call(v["schema"]["openAPIV3Schema"])};
puts acc.uniq.sort' config/crd/bases/openvox.voxpupuli.org_servers.yamlWhen a documented claim cannot be verified against the code, say so in the text rather than leaving it to look confirmed.
The canonical feature list lives in docs/_snippets/features.md.
docs/index.mdincludes it automatically viapymdownx.snippets(--8<-- "docs/_snippets/features.md")README.mdcontains a copy between<!-- features -->and<!-- /features -->HTML comment markers
When updating features:
- Edit
docs/_snippets/features.md(single source of truth) - Copy the same content into the
<!-- features -->block inREADME.md