https://github.com/bobbyiliev/kubegen-cli
Rust based CLI for scaffolding Kubernetes operators using kube-rs
https://github.com/bobbyiliev/kubegen-cli
hacktoerfest kube kubebuilder kubegen kubernetes kubers rust
Last synced: 5 months ago
JSON representation
Rust based CLI for scaffolding Kubernetes operators using kube-rs
- Host: GitHub
- URL: https://github.com/bobbyiliev/kubegen-cli
- Owner: bobbyiliev
- License: apache-2.0
- Created: 2026-01-19T08:24:30.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-19T08:49:14.000Z (5 months ago)
- Last Synced: 2026-01-19T16:43:40.581Z (5 months ago)
- Topics: hacktoerfest, kube, kubebuilder, kubegen, kubernetes, kubers, rust
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 77
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# kubegen
kubegen is a Rust based CLI for scaffolding Kubernetes operators using kube-rs.
Think Kubebuilder, but for Rust.
## Goals
- Make writing Kubernetes operators in Rust approachable
- Generate production ready scaffolding
- Follow kube-rs best practices
- Keep generated code explicit and owned by the user
## What kubegen does
- Scaffold a new Rust operator project
- Generate CRDs and Rust types
- Create reconciliation boilerplate
- Optionally add metrics and webhooks
## Non goals
- Providing a runtime framework
- Abstracting Kubernetes concepts
- Managing operator lifecycle after generation
## Project status
Early development. APIs and templates may change.
## Installation
### From crates.io (Recommended)
```bash
cargo install kubegen
```
### Homebrew (macOS/Linux)
```bash
brew tap bobbyiliev/kubegen
brew install kubegen
```
### Download Binary
Download the latest release for your platform from the [releases page](https://github.com/bobbyiliev/kubegen-cli/releases).
**Linux (x86_64)**
```bash
curl -LO https://github.com/bobbyiliev/kubegen-cli/releases/latest/download/kubegen-x86_64-unknown-linux-gnu.tar.gz
tar xzf kubegen-x86_64-unknown-linux-gnu.tar.gz
sudo mv kubegen /usr/local/bin/
```
**macOS (Apple Silicon)**
```bash
curl -LO https://github.com/bobbyiliev/kubegen-cli/releases/latest/download/kubegen-aarch64-apple-darwin.tar.gz
tar xzf kubegen-aarch64-apple-darwin.tar.gz
sudo mv kubegen /usr/local/bin/
```
**macOS (Intel)**
```bash
curl -LO https://github.com/bobbyiliev/kubegen-cli/releases/latest/download/kubegen-x86_64-apple-darwin.tar.gz
tar xzf kubegen-x86_64-apple-darwin.tar.gz
sudo mv kubegen /usr/local/bin/
```
**Windows**
Download `kubegen-x86_64-pc-windows-msvc.zip` from the [releases page](https://github.com/bobbyiliev/kubegen-cli/releases) and add to your PATH.
### Build from Source
```bash
git clone https://github.com/bobbyiliev/kubegen-cli.git
cd kubegen-cli
cargo build --release
# Binary will be at target/release/kubegen
```
## Usage
```bash
kubegen new my-operator
kubegen add crd MyResource
kubegen add metrics
kubegen add webhook MyResource
```
## Contributing
Focused and atomic PRs only.
Every feature should include:
* Implementation
* Tests
* Documentation if user facing
See CONTRIBUTING.md for details.