{"id":36969216,"url":"https://github.com/yairfalse/seppo","last_synced_at":"2026-01-13T21:04:27.626Z","repository":{"id":327132843,"uuid":"1106276417","full_name":"yairfalse/seppo","owner":"yairfalse","description":"A rust cloud-native Kubernetes SDK","archived":false,"fork":false,"pushed_at":"2025-12-27T19:00:28.000Z","size":571,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-29T14:36:58.276Z","etag":null,"topics":["cloud-native","framework","golang","kubernetes","qa","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yairfalse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-28T23:47:15.000Z","updated_at":"2025-12-27T19:00:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yairfalse/seppo","commit_stats":null,"previous_names":["yairfalse/seppo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yairfalse/seppo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yairfalse%2Fseppo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yairfalse%2Fseppo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yairfalse%2Fseppo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yairfalse%2Fseppo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yairfalse","download_url":"https://codeload.github.com/yairfalse/seppo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yairfalse%2Fseppo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-native","framework","golang","kubernetes","qa","rust"],"created_at":"2026-01-13T21:04:26.819Z","updated_at":"2026-01-13T21:04:27.616Z","avatar_url":"https://github.com/yairfalse.png","language":"Rust","readme":"# SEPPO\n\n**Kubernetes SDK for Rust. No YAML. No CLI. Just code.**\n\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)\n[![Rust](https://img.shields.io/badge/rust-1.75%2B-orange.svg)](https://www.rust-lang.org)\n\n**This is a learning project** - exploring Kubernetes SDK patterns in Rust.\n\n```rust\nuse seppo::Context;\n\nlet ctx = Context::new().await?;\nctx.apply(\u0026deployment).await?;\nctx.wait_ready(\"deployment/myapp\").await?;\n```\n\n---\n\n## Why\n\n**The problem:** Kubernetes tooling is fragmented. You write YAML, shell out to kubectl, maintain bash scripts, and wrestle with templating engines. Your \"infrastructure as code\" isn't really code—it's configuration files with code-like aspirations.\n\n**The vision:** What if Kubernetes operations were just... code? Real code. In your language. With types, IDE support, and compile-time checks.\n\nSeppo makes Kubernetes a library call:\n\n```rust\n// This is your deployment. No YAML.\nlet deployment = DeploymentFixture::new(\"myapp\")\n    .image(\"myapp:v1\")\n    .replicas(3)\n    .port(8080)\n    .build();\n\nctx.apply(\u0026deployment).await?;\nctx.wait_ready(\"deployment/myapp\").await?;\n```\n\nNo YAML. No kubectl. No templating. Just Rust.\n\n---\n\n## What We Want to Achieve\n\n1. **Escape YAML** — Define resources in code, not configuration files\n2. **Native SDK** — First-class Rust library, not a CLI wrapper\n3. **Full kubectl coverage** — Everything kubectl does, but programmatic\n4. **Ecosystem integration** — Import from Helm/Kustomize as migration path, then stay in code\n5. **Multi-language** — Same concepts in Rust (Seppo) and Go (Ilmari)\n\nThe goal: you should never need to write YAML again.\n\n---\n\n## How It Works\n\n```\n┌──────────────────┐     ┌─────────────────┐     ┌──────────────┐\n│  Context::new()  │────▶│     Context     │────▶│  Kubernetes  │\n│  (your code)     │     │   (namespace)   │     │ (any cluster)│\n└──────────────────┘     └─────────────────┘     └──────────────┘\n         │                       │\n         │                       ├── apply()      → create resources\n         │                       ├── get/list()   → read resources\n         │                       ├── delete()     → remove resources\n         │                       ├── wait_ready() → poll until ready\n         │                       ├── port_forward() → port forward\n         │                       ├── exec()       → run commands\n         │                       └── logs()       → stream logs\n```\n\nEach `Context` manages a namespace. Resources are created via `kube-rs`. The optional `#[seppo::test]` macro adds automatic cleanup and failure diagnostics.\n\n---\n\n## Install\n\n```toml\n[dependencies]\nseppo = \"0.1\"\n```\n\nRequires a Kubernetes cluster (Kind, Minikube, EKS, GKE, etc.)\n\n---\n\n## Usage\n\n### Standalone\n\n```rust\nuse seppo::Context;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let ctx = Context::new().await?;\n\n    ctx.apply(\u0026my_deployment).await?;\n    ctx.wait_ready(\"deployment/myapp\").await?;\n\n    // Your operations here...\n\n    ctx.cleanup().await?;\n    Ok(())\n}\n```\n\n### With Test Macro\n\n```rust\nuse seppo::Context;\n\n#[seppo::test]\nasync fn test_my_app(ctx: Context) {\n    ctx.apply(\u0026deployment).await?;\n    ctx.wait_ready(\"deployment/myapp\").await?;\n\n    let pf = ctx.port_forward(\"svc/myapp\", 8080).await?;\n    assert!(pf.get(\"/health\").await?.contains(\"ok\"));\n}\n// Cleanup automatic on success, diagnostics on failure\n```\n\n### Resource Builders\n\n```rust\nuse seppo::deployment;\n\nlet deploy = deployment(\"myapp\")\n    .image(\"nginx:latest\")\n    .replicas(3)\n    .port(80)\n    .env(\"LOG_LEVEL\", \"debug\")\n    .label(\"tier\", \"frontend\")\n    .build();\n\nctx.apply(\u0026deploy).await?;\n```\n\n### Deploy Stacks\n\n```rust\nuse seppo::stack;\n\nlet s = stack()\n    .service(\"frontend\")\n        .image(\"fe:v1\")\n        .replicas(2)\n        .port(80)\n    .service(\"backend\")\n        .image(\"be:v1\")\n        .replicas(3)\n        .port(8080)\n    .service(\"db\")\n        .image(\"postgres:15\")\n        .port(5432)\n    .build();\n\nctx.up(\u0026s).await?;\n```\n\n### Async Conditions\n\n```rust\nuse seppo::eventually;\n\neventually(|| async {\n    let pods: Vec\u003cPod\u003e = ctx.list().await?;\n    Ok(pods.len() \u003e= 3)\n})\n.timeout(Duration::from_secs(60))\n.await?;\n```\n\n---\n\n## Failure Diagnostics\n\nWhen tests fail, Seppo keeps the namespace and dumps diagnostics:\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n  SEPPO TEST FAILED\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n  Namespace: seppo-test-a1b2c3d4 (kept for debugging)\n\n─── Pod Logs ───────────────────────────────────────────────────\n[myapp-xyz123]\n  ERROR: Connection refused to postgres:5432\n\n─── Events ─────────────────────────────────────────────────────\n  • 10:42:00  Pod/myapp  Scheduled  Assigned to node-1\n  • 10:42:01  Pod/myapp  BackOff    Image pull error\n\n─── Debug ──────────────────────────────────────────────────────\n  kubectl -n seppo-test-a1b2c3d4 get all\n  kubectl delete ns seppo-test-a1b2c3d4\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n```\n\n---\n\n## Features\n\n| Category | Features |\n|----------|----------|\n| **Core** | `Context`, apply/get/list/delete, wait_ready |\n| **Network** | Port forwarding, exec, logs |\n| **Builders** | DeploymentFixture, PodFixture, ServiceFixture, Stack |\n| **Testing** | `#[seppo::test]`, eventually/consistently, assertions |\n| **Diagnostics** | Pod logs, events, failure reports |\n| **Providers** | Kind, Minikube, existing clusters |\n| **Assertions** | Semantic assertions on pods, deployments, services |\n\n---\n\n## Roadmap\n\n| Phase | Goal |\n|-------|------|\n| **0** | Rebrand as SDK, expose `Context::new()` standalone |\n| **1** | Complete primitives: patch, watch, copy, diff |\n| **2** | Helm/Kustomize import, migration CLI |\n| **3** | Operational: scale, rollback, restart, drain |\n| **4** | Multi-cluster, impersonation, audit |\n\n---\n\n## Naming\n\n**Seppo** (Finnish smith god from Kalevala) - Part of a Finnish tool naming theme:\n- **SEPPO** (smith) - Kubernetes SDK for Rust\n- **ILMARI** (smith) - Kubernetes SDK for Go\n- **SYKLI** (cycle) - CI orchestrator\n- **NOPEA** (fast) - GitOps controller\n- **KULTA** (gold) - Progressive delivery\n- **RAUTA** (iron) - Gateway API controller\n\n---\n\n## License\n\nApache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyairfalse%2Fseppo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyairfalse%2Fseppo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyairfalse%2Fseppo/lists"}