docs: k9s readonly parity audit (4.7) (#20)

Enumerate the full k9s readonly surface (keybindings + colon commands, grounded
in the k9s README/docs) against krust, marking each present / partial / missing
/ scoped-out. Mutations are explicitly out of scope for the readonly-first v1.

Identifies the prioritized gaps to close, highest value first: Enter
drill-down (deploy/node/svc → children), previous logs, xray tree view; then
jump-to-owner, UsedBy, log timestamps, metric-column sort. popeye and the
pulses dashboard flagged as decide/likely-scope-out.

ROADMAP 4.7 updated with the findings and next-step ordering.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
ErfanandClaude Opus 4.8 authored and GitHub committed 2026-06-25 15:20:33 +02:00
1 parent 5c507db70a
commit be20e8edfb
2 files changed
+121 -3

No files matched your search

+12 -3
View File
@@ -190,9 +190,18 @@ Root problem: full object JSON kept for every entity.
Compiled once per projection (`Filter`). Tests cover label eq/neq/absent, inverse, substring
fallback. Deferred (dep-free for now): fuzzy + regex matching; detail/log search still substring.
- [ ] **4.6 Port-forward** — readonly-adjacent inspection; decide in/out of v1 scope.
- [ ] **4.7 k9s readonly surface audit** — enumerate k9s readonly commands/keybindings; close
remaining gaps or explicitly mark out-of-scope (pulses/xray/popeye are stubbed,
command_mode.rs:286).
- [~] **4.7 k9s readonly surface audit** — DONE (audit): `docs/k9s-parity-audit.md` enumerates the
full k9s readonly surface vs krust (grounded in the k9s README keybindings + commands docs) and
marks each ✅/🟡/❌/⛔. Mutations explicitly scoped out (readonly-first v1). Prioritized gaps to
close next, highest value first:
- **Enter drill-down** (deploy/rs/sts/ds→pods, node→pods, svc→endpoints/pods) — biggest gap; the
owner→pod mapping already exists (log fan-in).
- **Previous logs** (`--previous` toggle) for crashloops.
- **xray** relationship-tree view (replace stub).
- Medium: jump-to-owner (`Shift-J`), UsedBy/dependents (`U`), log timestamps, pod metric-column
sort, inline `:pod /term`/`@ctx`.
- Decide: popeye sanitizer (large, separable); pulses dashboard (likely redundant with the
always-on pulse → lean scope-out); regex/fuzzy filter (4.5).
---
+109
View File
@@ -0,0 +1,109 @@
# k9s Readonly Parity Audit (ROADMAP 4.7)
Goal of the first stable release: **every readonly function that works in k9s must work in krust.**
Mutating operations are explicitly out of scope for v1 (krust is readonly-first), so this audit
tracks the *readonly* surface only and marks mutations as scoped-out.
Source of truth for the k9s side: the k9s README key-bindings table and the k9s commands docs
(fetched 2026-06). krust side: `src/keymap.rs`, `src/ui/commands.rs`, `src/ui/app/command_mode.rs`,
and the pane/overlay handlers.
Legend: ✅ present · 🟡 partial / different mechanism · ❌ missing · ⛔ scoped-out (mutation or n/a)
## Global / navigation
| k9s | krust | Status | Notes |
|---|---|---|---|
| `?` help | `?` | ✅ | keymap-aware help |
| `Ctrl-A` aliases | `Ctrl-A` / `:aliases` | ✅ | |
| `:q` / `:quit` / `Ctrl-C` | same | ✅ | |
| `Esc` previous view | `Esc` | 🟡 | closes pane / cancels; no full breadcrumb stack (krust has `[`/`]`/`-` history) |
| `:pod` (singular/plural/short/alias) | `:po`/`:<kind>` | ✅ | 200+ aliases incl. discovered CRDs |
| `:pod ns-x` | `:<kind>` then `:ns` | 🟡 | no inline namespace arg in the resource command |
| `:pod /fred` (inline filter) | — | ❌ | krust filters via `/` or `:<kind> -l`; no inline `/term` in command |
| `:pod app=k,env=v` (inline labels) | `:<kind> -l app=k,env=v` | ✅ | |
| `:pod @ctx1` (inline context) | tabs / `:ctx` | ❌ | no inline `@ctx` jump |
| `/filter` (regex) | `/filter` | 🟡 | substring; **regex/fuzzy deferred** (4.5) |
| `/! filter` inverse | `/!term` | ✅ | |
| `/-l label` | `/key=value` | ✅ | |
| `/-f` fuzzy | — | ❌ | deferred |
| `-` / `[` / `]` history | same | ✅ | |
| `:ctx` / `:ctx name` | same | ✅ | |
| `:ns` | `:ns` / `n` cycle | ✅ | |
| `:screendump` / `:sd` | `:dump`/`:sd`/`:screendump` | 🟡 | krust dumps current view to clipboard; not a saved-file browser |
## Diagnostic / special views
| k9s | krust | Status | Notes |
|---|---|---|---|
| `:pulses` / `:pu` dashboard | always-on Cluster Pulse panel | 🟡 | krust shows live pulse continuously; dedicated dashboard view stubbed |
| `:xray RESOURCE` relationship tree | — (stubbed) | ❌ | **notable readonly gap** — owner/child tree view |
| `:popeye` / `:pop` sanitizer | — (stubbed) | ❌ | cluster linter/diagnostics; large, separable scope |
## Per-resource readonly actions
| k9s | krust | Status | Notes |
|---|---|---|---|
| `D` describe | `d` | ✅ | raw YAML/JSON describe |
| `Y` view YAML | `v` (+`:fmt yaml/json`) | ✅ | krust uses `v`; `y` is copy |
| `L` logs | `l` | ✅ | multi-container + owner→pod fan-in |
| `P` previous logs | — | ❌ | no `--previous` toggle (crashloop debugging) |
| `x` decode secret | `x` | ✅ | decode + re-encode-on-edit |
| `Enter` drill-down to children | `Enter` = describe / ns-select | ❌ | **major gap**: deploy→pods, node→pods, svc→endpoints/pods, rs/sts/ds→pods |
| `Shift-J` jump to owner | — | ❌ | pod→RS→deploy navigation |
| `U` UsedBy (dependents) | — | ❌ | SA/PVC/Secret/ConfigMap dependents |
| `Z` view ReplicaSets (deploy) | — | ❌ | subset of drill-down |
| `C` copy name / `N` copy namespace | `y` / `:copy` | 🟡 | copies detail content, not name/ns specifically |
| `E` events | `Shift-E` | ✅ | correlated events pane (4.3) |
## Sorting & columns
| k9s | krust | Status | Notes |
|---|---|---|---|
| `Shift-N/A/P/S` sort name/age/ns/status | `s` cycle + `:sort <col>`, `r` reverse | ✅ | sort indicator added; covers all four |
| `Shift-C` / `Shift-M` sort cpu/mem (pods) | — | ❌ | no metric-column sort |
| `Shift-O` sort by selected column | `:sort` | 🟡 | explicit column via command, not cursor column |
| per-kind columns | per-kind columns | ✅ | shipped (deploy/svc/pvc/hpa/… ) |
| `Ctrl-W` wide / `Ctrl-E` header / `Ctrl-Z` faults | — | ❌ | minor view toggles |
| `Shift-Left/Right` reorder columns | — | ❌ | cosmetic |
| `Ctrl-R` refresh | n/a | ⛔ | krust is always live-watch; no manual refresh needed |
## Logs pane
| k9s | krust | Status | Notes |
|---|---|---|---|
| `W` wrap | `w` | ✅ | |
| autoscroll / tail | `s` tail toggle | ✅ | |
| pause | `p` | ✅ | |
| container/source selectors | `c` / `S` | ✅ | |
| `T` timestamps | — | ❌ | no timestamp toggle |
| `F` fullscreen | — | ❌ | minor |
## Mutations — scoped out for the readonly-first v1
`E` edit (blocked under `--readonly`), `Ctrl-D` delete / `Ctrl-K` kill (guarded), `s` shell / `a`
attach, `Shift-F`/`F` port-forward (4.6), cordon/uncordon/drain/restart/rollback/trigger,
benchmark, and `Space`/`Ctrl-Space`/`Ctrl-\` marks (only useful for bulk mutation). These are
intentionally excluded from the readonly parity bar.
## Prioritized gaps to close for v1
**High value (true readonly-parity gaps):**
1. **Enter drill-down** — deploy/rs/sts/ds → pods, node → pods, svc → endpoints/pods. krust already
has the owner→pod mapping (used by log fan-in), so the data path exists. Most impactful gap.
2. **Previous logs** — a `--previous` toggle in the logs pane for crashlooping containers.
3. **xray** view — owner/child relationship tree (`:xray`), replacing the current stub.
**Medium:**
4. **Jump to owner** (`Shift-J`) and **UsedBy / dependents** (`U`).
5. **Log timestamps** toggle.
6. **Metric-column sort** for pods (cpu/mem).
7. Inline command conveniences: `:pod /term`, `:pod @ctx`.
**Lower / decide:**
8. **popeye** sanitizer — large, separable; decide in-or-out for v1.
9. Pulses dashboard view (likely redundant with the always-on pulse — lean toward scope-out).
10. Regex/fuzzy filter (4.5 deferral), wide/header/fault toggles, column reorder, fullscreen,
copy-name/copy-ns, screendump-to-file browser.
**Scoped-out / not applicable:** all mutations (above), `Ctrl-R` refresh (always live).