ErfanandClaude Opus 4.8 b4620a78b3 refactor(ui): title/header/sort consistency + graduated right-sizing colors (#25)
* refactor(ui): unify panel titles, column-header casing, and sort order

Naming-convention consistency pass across the whole UI.

Panel/overlay titles → one convention: `[TAG] subject (count) · meta… · hints…`
- single `·` separator everywhere (drop `|` and `(parenthetical, lists)`)
- full-word uppercase tags: table uses the kind ([PODS]/[DEPLOYMENTS]/…), plus
  [DRILL] [XRAY] [TRIAGE] [TEXT] [CONTEXTS] [CONTAINERS] [SOURCES] [LOGS]
  [DESCRIBE]/[DECODE]/[EVENTS] [PULSE]
- counts in (n); meta as lowercase `key: value`; hints lowercase, `esc close` last
- dropped the now-unused `title` field from the Contexts/LogSources overlays

Column headers → one casing rule across every table (main, pods, per-kind,
triage, events pane, overlays, :dump export): plain words use Title case
(Namespace, Node, Ready, Restarts, Reason), acronyms stay uppercase (CPU, MEM,
IP), formula columns kept as-is (%CPU/R). Fixes NODE→Node, RST→Restarts, the
ALL-CAPS per-kind columns, the triage and events headers (CNT→Count), and the
lowercase dump export.

Sort: `s` now advances in left-to-right table-column order
(Namespace→Name→Status→Age→Namespace) instead of an arbitrary jump.

Tests updated for the new title/header strings; added a cycle_sort order test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(ui): graduated severity coloring for right-sizing % columns

The %R/%L pod columns each used a single color — %R only ever went yellow (never
red, even at 400% of request), and %L jumped straight to red at ≥90% with no
"approaching" warning. Make both a green→yellow→red gradient:

- %CPU/R, %MEM/R (vs request): ok <100 · yellow ≥100 (under-requested) ·
  red ≥200 (severely under-requested — QoS/scheduling risk)
- %CPU/L, %MEM/L (vs limit): ok <75 · yellow ≥75 (approaching) ·
  red ≥90 (throttle/OOM risk)

Test: pod_usage_cells severity thresholds for both columns.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs: record deferred over-provisioned right-sizing signal (5.7)

Capture the decision to defer the low-%R (over-provisioned) coloring until we
track per-pod usage history (p95/max); a snapshot-based waste flag would
false-alarm on momentary idle dips.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 00:37:30 +02:00
2026-06-25 22:07:21 +00:00
2026-06-25 22:07:21 +00:00

krust

CI Release License: MIT Kubernetes 1.33+

krust is a latency-first Kubernetes terminal navigator for operators managing many clusters and high resource volume.

It focuses on fast navigation, inspect, logs, and safe actions, with high k9s command/keybinding compatibility for Kubernetes-native workflows.

Goal and Approach

Goal:

  • stay responsive for power users across many contexts and large object sets
  • provide Kubernetes-native terminal workflows without plugin complexity

Approach:

  • lazy scope activation instead of watch-everything startup
  • bounded state/update pipelines to avoid UI jitter under churn
  • keyboard-first interaction with high k9s compatibility
  • explicit RBAC/auth error handling and guarded mutation paths

Install

Homebrew

brew tap ErfanY/krust
brew install krust

Prebuilt binaries

curl -L -o krust.tar.gz \
  https://github.com/ErfanY/krust/releases/latest/download/krust-x86_64-unknown-linux-gnu.tar.gz

tar -xzf krust.tar.gz
sudo install krust-x86_64-unknown-linux-gnu/krust /usr/local/bin/krust

From source

cargo install --git https://github.com/ErfanY/krust.git --locked krust

For local development, make (no args) lists targets; make validate runs the full CI gate (fmt/check/test/release build) and make package builds a release tarball.

Quick Start

krust
krust --context <context-name>
krust --namespace <namespace>
krust --readonly

Compatibility

  • OS: macOS, Linux
  • Kubernetes: 1.33+
  • Auth: kubeconfig + exec auth providers

Documentation

Scope

Available now:

  • Multi-context workflow with fast context switching and namespace scoping (all namespace supported)
  • Kubernetes resource browser for curated kinds: pods, deployments, replicasets, statefulsets, daemonsets, services, ingresses, configmaps, secrets, jobs, cronjobs, pvc/pv, nodes, namespaces, events, serviceaccounts, roles/rolebindings/clusterroles/clusterrolebindings, networkpolicies, hpa, pdb
  • Dynamic discovery: list and describe any other resource or CRD on the cluster (read-only) via :api and :<resource>
  • Describe/detail pane with YAML/JSON toggle, syntax highlighting, vim-style search, and wrap/horizontal scroll modes
  • Logs pane with stream, tail, pause, source filtering, container selection, and multi-pod fan-in for deployment/replicaset views
  • Secret decode view in YAML, with edit/apply support and automatic re-encode on apply
  • Guarded mutation flows (for example delete) plus read-only mode (--readonly)
  • k9s-style command and keybinding compatibility for Kubernetes-native workflows (plugin commands excluded)
  • Performance-oriented behavior for large clusters: lazy watch activation, bounded update pipelines, render invalidation, and RBAC-aware watch suppression

Explicitly out of scope:

  • Plugin subsystem
  • Non-Kubernetes plugin commands

License

MIT. See LICENSE.

S
Description
Kubernetes Client in Rust
Readme MIT
505 KiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 97%
Shell 2.2%
Makefile 0.8%