Skip to content
Overview

Overview

Genop (Generic Operator) is a framework and CLI for building Kubernetes operators. Built on top of kubebuilder and controller-runtime, it eliminates the boilerplate that every operator needs but nobody wants to write.

Generated operators depend on genop-runtime, a separate module that ships the reconciler interfaces, lifecycle model, and test helpers that Genop scaffolds against. Genop itself is a pure code-generation CLI; genop-runtime is what the generated code imports at runtime.

Where kubebuilder gives you an empty Reconcile(ctx, req) and leaves you on your own, Genop provides:

  • Resource lifecycle management with phases (Pending, Running, Succeeded, Failed, Deleting)
  • Automatic finalizer management (add on create, remove after delete reconcilers complete)
  • Status and condition tracking with BaseStatus embedded in all resources
  • Exponential backoff with jitter for failed reconciliations
  • Kubernetes events sent automatically on state transitions
  • Metrics scaffolding per resource kind
  • Webhook scaffolding with validating and defaulting stubs
  • Helm chart generation for deployment
  • Test scaffolding with envtest-based suites

You focus on your reconciler logic (usually CRUD against an external system). Genop handles the Kubernetes plumbing.

Start here: Getting started to install genop and scaffold your first operator, or jump straight to the CLI reference.