ktop Release v0.8.0
ktop v0.8.0 unifies cluster navigation around five top-level tabs ([1] Overview, [2] Workloads, [3] Storage, [4] Network, [5] Events), adds universal full-screen pane expansion ([x]), introduces elevated ModalBox overlays over dimmed backdrops, standardizes expandable 3-column detail panels across nodes, pods, and containers, and preserves table row selection by resource identity across focus changes and background refreshes. Alongside UI refinements for Storage and Network parity, every tab degrades cleanly when running against Metrics Server or --metrics-source=none, and all user documentation and visual guides have been updated for v0.8.0.
Detailed Changes by Category
1. Navigation, Tab Ordering & Interactive Tables (application, ui, views)
Five-Tab Workspace Order (application/tui/app.go, cmd/ktop.go, config/config.go)
- Problem / Context: Core tabs placed Events before infrastructure views, separating Storage and Network from the main operator workflow.
- Implementation Details: Reordered registered pages in
application/tui/app.go,--pagevalidation incmd/ktop.go, and default configuration validation inconfig/config.goto match the operational hierarchy:[1] Overview,[2] Workloads,[3] Storage,[4] Network, and[5] Events. - Impact & Behavioral Notes: Numeric tab keys (
1–5),</>navigation, and--pageCLI flags align directly with the updated five-tab bar.
Universal [x] Pane Expand and Restore (ui/table_controller.go, ui/panel.go, views/*)
- Problem / Context: Split layouts constrained dense tables on multi-panel tabs (
Overview,Workloads,Storage,Network), while only container logs supported[x]expansion. - Implementation Details: Added
ui.ExpandablePanelandui.FormatExpandedSuffixinui/panel.go, wiredTableControllerConfig.OnExpandandTableController.SetOnExpandinui/table_controller.go, and implemented expand/restore state acrossviews/overview/main_panel.go,views/workloads/page.go,views/storage/page.go,views/network/page.go,views/events/page.go, and detail views. - Impact & Behavioral Notes: Pressing
xon any focused table or detail card expands it to full workspace height; pressingx,Tab, orEscrestores the split view.
Identity-Based Table Selection Persistence (ui/table_controller.go, views/*)
- Problem / Context: Moving focus away from a table cleared selection or reset the cursor on background data refreshes, making cross-panel inspection tedious.
- Implementation Details: Introduced
ui.TableSelection(Attach,OnFocus,OnBlur,BeginRedraw,EndRedraw) and integratedTableController.OnFocus,TableController.OnBlur, andTableController.ResetSelectionacrossOverview,Workloads,Storage,Network,Events, and detail tables. - Impact & Behavioral Notes: First-time focus highlights the first row automatically; leaving and returning to a table restores selection to the last inspected object by resource identity even when rows reorder during refreshes.
2. Floating Modals & Uniform 3-Column Detail Views (ui, ui/theme, views)
Elevated ModalBox Overlays with Dimmed Scrim (ui/modal_box.go, ui/overlay.go, ui/theme/*)
- Problem / Context: Centered overlays previously rendered directly against live background panels without depth separation or heavy framing.
- Implementation Details: Added
ui.ModalBox(NewModalBox,Draw,Focus,InputHandler) using double/heavy borders (ui.DrawDoubleBorder) and inset title styling, paired with backdrop dimming inui.OverlayFrame(NewOverlayFrame,NewCenteredOverlayFrame) and theme tokens inui/theme/palette.goandui/theme/builtins.go. Applied consistently across Pod Inspector (views/pod/detail.go), YAML viewer (ui/yaml_modal.go), column picker (ui/column_modal.go), help overlay (ui/help_modal.go), and Event Detail (views/events/detail_modal.go). - Impact & Behavioral Notes: Floating overlays dim the background header and workspace while keeping modal content and the bottom shortcut footer crisp and legible.
Uniform 3-Column Detail Cards & Keyboard Navigation (ui/detail_columns.go, views/node/detail.go, views/pod/detail.go, views/container/detail.go, views/workloads/detail.go)
- Problem / Context: Node
System Detail,Pod Detail,Container Detail, andWorkload Detailhad inconsistent key bindings, truncated multi-column cards, and no column switching. - Implementation Details: Implemented
ui.DetailColumns(NewDetailColumns,HandleInput,SetExpanded,PreserveScroll,SectionHeader) inui/detail_columns.goand adopted it acrossviews/node/detail.go,views/pod/detail.go, andviews/container/detail.go. Updatedviews/workloads/detail.goso Workload Detail opens with initial focus on Owned Pods, and updatedui/help_modal.goandui/footer_context.gofor detail shortcuts. - Impact & Behavioral Notes: Operators switch columns with
←/→(h/l), scroll long sections with↑/↓(j/k), and toggle full-screen[x]expansion uniformly across detail panels.
3. Storage, Network & Graceful Metrics Degradation (k8s, ui, views)
Shared Node Metrics Cache & RX/TX Parity (k8s/client_controller.go, k8s/summary_controller.go, k8s/network_controller.go)
- Problem / Context:
[1] Overviewand[4] NetworkqueriedGetNodeMetricsindependently, allowing cluster networkRXandTXtotals to drift between tabs. - Implementation Details: Added
Controller.getNodeMetricsSnapshotwith generation-trackednodeMetricsCacheinvalidation onSetMetricsSourceink8s/client_controller.go, shared acrossk8s/summary_controller.goandk8s/network_controller.go. - Impact & Behavioral Notes: Cluster
RX/TXthroughput displayed in[4] NetworkSummary matches[1] Overviewwhile avoiding duplicate node metric fetches within short refresh windows.
Equal-Height Storage & Network Panels with Distinct Icons (ui/icons.go, views/storage/page.go, views/network/page.go)
- Problem / Context: Split tables in Storage and Network used unequal proportions, and PersistentVolumeClaims shared the Pod package icon.
- Implementation Details: Updated
views/storage/page.goandviews/network/page.goto render balanced1:1equal-height split tables, addedui.Icons.FileCabinet(🗄) inui/icons.goforPersistentVolumeClaims, and assignedui.Icons.Disc(💿) toPersistentVolumes. - Impact & Behavioral Notes: Storage and Network views allocate equal vertical space across paired tables with distinct visual glyphs per resource panel.
Graceful Tab Degradation Across Metrics Modes (k8s/*, views/storage/*, views/network/*, views/workloads/*)
- Problem / Context: Running with
--metrics-source=metrics-serveror--metrics-source=nonelacked explicit availability signaling across secondary tabs. - Implementation Details: Updated
k8s/storage_controller.go,k8s/network_controller.go, andk8s/workloads_controller.gotogether with summary panels inviews/storage/summary.go,views/network/summary.go, andviews/workloads/summary.goto surface clearunavailablestates for Prometheus-only counters while keeping all object tables active. - Impact & Behavioral Notes: Workloads, Storage, Network, and Events remain fully navigable and interactive regardless of metrics backend availability.
4. Documentation & Visual Guides (README.md, docs/)
- Refreshed Site & User Guide: Updated docs/overrides/home.html, README.md, and docs/guide.md to reflect
v0.8.0tab ordering, modals, detail cards, and~/.ktop/ktop.logsession log path. - CLI, Telemetry & Headless Docs: Corrected
--show-all-columnsdefault and component coverage in docs/cli.md, documented Component SLI deductions and JSONL fields in docs/noui.md, updated GAmetrics.k8s.io/v1and degradation notes in docs/metrics-server.md, and expanded docs/prometheus.md. - Screenshots & Vector Diagrams: Added 7
v0.8.0TUI captures and 4 SVG architecture/comparison diagrams (docs/images/arch-navigation-map.svg,docs/images/arch-prometheus-pipeline.svg,docs/images/arch-metrics-server.svg,docs/images/psi-cpu-comparison.svg).
Upgrade & Compatibility Notes
- Backward Compatibility: Fully compatible with existing CLI flags,
kubectl ktopplugin invocation,~/.ktop/config.yaml, and--nouiJSON/JSONL automation consumers. - Deprecations & Behavioral Shifts: Top-level numeric tab order updated to
[1] Overview,[2] Workloads,[3] Storage,[4] Network, and[5] Events.--show-all-columnsdefaults tofalse. - Migration Actions: If scripts or habits relied on tab
3for Events or--show-all-columnsdefaulting on, switch to key5/--page=eventsand pass--show-all-columnsexplicitly when needed.
Repository Metrics
82 files changed, 5927 insertions(+), 1128 deletions(-)
- Documentation: