4 Commits
Author SHA1 Message Date
Erfan YousefiandClaude Opus 4.8 897fd38066 build: add Makefile as the single entry point for dev/CI/release
One make interface that runs the same commands locally and in CI.

- `make validate` = fmt-check -> check -> test -> release build (the pre-PR gate).
- `make ci` (alias) is now what .github/workflows/ci.yml runs; release.yml's
  validate stage runs `make validate` and its per-target build/package runs
  `make package TARGET=<triple>` (byte-identical artifact: krust-<triple>.tar.gz
  containing krust-<triple>/{krust,README.md,LICENSE}).
- Convenience targets: fmt, check, clippy, test, build(-release), run, clean,
  package; lab-{up,load,contexts,crds,churn,down} wrap scripts/scale; and
  bench/bench-contexts/soak/discover/metrics wrap the headless harnesses.
- cargo is resolved robustly (PATH, then a Homebrew keg-only rustup, else
  plain cargo) and its dir is put on PATH so external subcommands (cargo-fmt,
  cargo-clippy) and rustc resolve even when rustup is keg-only.
- dist/ (package output) gitignored. Docs (contributor guide, AGENTS, README)
  point at `make validate`.

Verified locally: make validate green (85 tests), make package produces the
release tarball, cargo resolves with no keg on PATH. CI running `make ci` on
this PR is the cross-environment proof.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 00:00:48 +02:00
Erfan Yousefi ffa8a7cb50 feat: establish krust v0.1 foundation with k9s-compatible UX and OSS release scaffolding
This commit consolidates the first production-ready baseline for krust, including core runtime behavior, operator UX, safety rails, and project publication assets.\n\nCore runtime and architecture\n- Implement lazy, active-scope watch-plan reconciliation across contexts/kinds/namespaces\n- Keep warm-context retention bounded by TTL for faster context switching\n- Add bounded watch reconnect handling and terminal handling for RBAC-forbidden watchers\n- Keep invalidation-driven rendering with FPS control and bounded log/state paths\n\nOperator UX and workflows\n- Expand k9s-style navigation/command aliases for supported Kubernetes resources\n- Improve pane consistency for table/detail/log overlays and scrolling behavior\n- Add detail viewer search semantics (non-destructive search/highlight) with match navigation\n- Add YAML/JSON detail format toggle and syntax highlighting for both formats\n- Add secret decode pane improvements and format-aware edit/apply behavior\n- Add clipboard copy and dump flows with native backend + OSC52 fallback\n\nSafety and action model\n- Keep readonly enforcement for mutation paths\n- Maintain guarded action behavior and clearer error/status surfacing\n\nDocumentation and open-source readiness\n- Rewrite README for community-facing onboarding and operational clarity\n- Add architecture and performance guides under docs/\n- Add CONTRIBUTING guide and PR template\n- Add GitHub Actions CI pipeline (fmt/check/test/release build)\n- Add GitHub Actions release pipeline for tagged multi-platform artifacts\n- Add Cargo package metadata and repository links\n- Add .gitignore hygiene for macOS Finder artifacts\n\nQuality and verification\n- Bring strict clippy (-D warnings) to clean state for current codebase\n- Validate full required pipeline: fmt, check, test, and release build
2026-03-08 03:29:19 +01:00
Erfan Yousefi de34b95fbf feat: expand krs into power-user multi-cluster TUI milestone
This checkpoint captures the latest end-to-end UX and engine improvements for high-scale Kubernetes navigation and operations.

Highlights

- add GenAI-native AGENTS.md operating contract with mandatory fmt/check/test/release pipeline

- require explicit user authorization before commits while preserving agent autonomy for commit boundaries

- define performance-first thinking model for large multi-context, high-resource clusters

- implement command field and richer command handling paths including contexts/resources/container command support

- improve context and namespace selection flows with enter-based selection behavior

- add real-time filtering and command autocomplete refinements

- add Vim-like detail-pane navigation/search motions (/, ?, n/N, gg/G, ctrl+d/u)

- add detail-pane search filtering and visual match highlighting

- upgrade detail/log viewer titles with stateful viewer metadata (mode/search/line/wrap)

- add container picker UX via 'c' key and :c command for pod container targeting

- expand log streaming to aggregate multi-target streams:

  * pod -> all containers by default (or selected container override)

  * replicaset -> all replica pods

  * deployment -> all replica pods via owned ReplicaSets

- prefix aggregated log lines with source identity for fast human parsing

- keep bounded log buffers and reconnect behavior for resilient streaming

- update watch activation to ensure dependent resource kinds are observed when logs require fanout

- update help/status messaging to surface new controls and behavior
2026-03-07 12:59:40 +01:00
Erfan Yousefi 58ce46c14c feat(krs): bootstrap high-performance k8s TUI foundation with k9s-style workflows
Establish the initial Rust codebase for krs and deliver a usable multi-context Kubernetes terminal navigator with latency-first behavior, command field UX, and guarded operations.

Highlights

- implement layered architecture: cluster IO -> state cache -> view projector -> ratatui renderer

- add async runtime wiring with tokio + kube + kube_runtime watcher loops

- support broad resource coverage (pods, deploys, rs, sts, ds, svc, ing, cm, secrets, jobs, cronjobs, pvc/pv, nodes, namespaces, events, rbac, netpol, hpa, pdb)

- add bounded StateDelta-driven cache updates and invalidation-based rendering loop with FPS cap

- implement command line UX and parser for k9s-style resource commands and args (:po, :svc, :ctx, :ns, -A, -n/--namespace, --context, labels, /filter)

- add command input line, history navigation ([, ], -), and resource alias overlays

- add selectable context overlay with keyboard/mouse navigation and Enter-to-switch

- enforce efficient startup/watch behavior with lazy context client initialization and on-demand watch activation

- harden RBAC-denied watcher handling (disable forbidden watcher and avoid retry flood)

- set keybinding defaults aligned with requested behavior (d=describe, ctrl+d=delete, shift+e=events, ctrl+c=quit)

- add guarded delete flow (confirmation TTL, RBAC-aware error rendering; pod delete implemented)

- lock scrolling to in-app panes/overlays and enable mouse-capture lifecycle management

- add config/keymap loading, CLI options, docs, and parser-focused unit tests

Compatibility/targeting

- target Kubernetes 1.33+ via k8s-openapi v1_33

- keep plugin system out of scope by design

Validation

- cargo test passed

- cargo build --release passed
2026-03-07 09:34:19 +01:00