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
3.0 KiB
3.0 KiB
Contributing to krust
Thanks for contributing to krust.
This project is built for operators running large Kubernetes estates, so performance and operational clarity are non-negotiable.
Principles
When proposing changes, optimize for these outcomes:
- low input-to-render latency under churn
- controlled Kubernetes API pressure
- bounded memory growth
- predictable, keyboard-first UX
- clear behavior under RBAC/auth/network failures
If a feature conflicts with these principles, prefer the simpler and faster path.
Development Setup
Prerequisites
- Rust stable toolchain
- kubeconfig with at least one working context
- macOS or Linux environment
Clone and build
git clone git@github.com:ErfanY/krust.git
cd krust
cargo build --release
Run locally:
cargo run -- --context <context-name>
Required Validation Pipeline
Run this sequence before opening or updating a PR:
cargo fmt --all
cargo check
cargo test
cargo build --release
The CI pipeline enforces the same flow.
Code and Design Expectations
Performance-sensitive changes
If your change touches watchers, projection, rendering, or logs, include in your PR description:
- what hot path changed
- expected complexity/cost impact
- API watch/list pressure impact
- memory impact and bounds
- failure-mode behavior (RBAC/auth/disconnect)
Use docs/performance.md as the baseline.
API/watch behavior
- avoid eager all-context/all-kind watchers by default
- prefer active-scope/lazy activation
- keep reconnect logic bounded
- treat RBAC denials as expected operational state
UX behavior
- preserve existing keybindings unless explicitly changing compatibility behavior
- avoid introducing mode ambiguities
- keep detail/log scrolling and search behavior predictable
Testing Guidance
Add or update tests when changing behavior:
- unit tests for parsing, formatting, and helper logic
- state/projection tests when list or sorting behavior changes
- UI behavior tests for keybinding and pane semantics
Performance benchmark tests can be added as ignored tests.
Pull Request Checklist
Before requesting review, verify:
cargo fmt --allcargo checkcargo testcargo build --release- docs updated (
README/docs/*) for user-visible changes - performance notes included for hot-path changes
Commit Style
Use imperative commit titles and keep scope tight.
Good examples:
ui: clamp detail scroll bounds for wrapped viewscluster: disable forbidden watchers per context/kinddocs: add performance tuning guide
Security and Sensitive Data
- never commit kubeconfigs, tokens, certificates, or customer data
- redact cluster/account identifiers from logs/screenshots in PRs where possible
- for sensitive reports, contact maintainers privately
Need help?
Open an issue with:
- expected behavior
- current behavior
- reproducible steps
- environment (
krustversion, OS, Kubernetes version)