🦀 ClawHub
Kubernetes Operator Scaffolder
by @charlie-morrison
Scaffold production-ready Kubernetes operators — generate CRDs, controllers, RBAC, webhooks, and Dockerfiles with best practices for Go or Python operators.
💡 Examples
Provide the following inputs:
Database, CacheCluster, MLPipeline)infra.example.com)v1alpha1 for new operatorsgo (kubebuilder) or python (kopf)Example invocation:
> Scaffold a Go operator for a PostgresCluster resource in the db.example.com group. Spec fields: replicas (int, default 3), version (string, default "16"), storageSize (string, default "10Gi"). On create, it should provision a StatefulSet with PVCs. On delete, clean up PVCs.
⚙️ Configuration
Before scaffolding, the agent checks for:
# Go operator (kubebuilder path)
go version # Go 1.22+
kubebuilder version # kubebuilder 4.x
controller-gen --version
kustomize versionPython operator (kopf path)
python3 --version # 3.11+
pip show kopf # kopf framework
pip show kubernetes # k8s client
If tools are missing, the agent provides install commands before proceeding.
TERMINAL
clawhub install kubernetes-operator-scaffolder