Skip to content

Version 0.8.0

Latest

Choose a tag to compare

@vladimirvivien vladimirvivien released this 30 Nov 03:31
3f78aa2

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, --page validation in cmd/ktop.go, and default configuration validation in config/config.go to 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 --page CLI 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.ExpandablePanel and ui.FormatExpandedSuffix in ui/panel.go, wired TableControllerConfig.OnExpand and TableController.SetOnExpand in ui/table_controller.go, and implemented expand/restore state across views/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 x on any focused table or detail card expands it to full workspace height; pressing x, Tab, or Esc restores 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 integrated TableController.OnFocus, TableController.OnBlur, and TableController.ResetSelection across Overview, 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 in ui.OverlayFrame (NewOverlayFrame, NewCenteredOverlayFrame) and theme tokens in ui/theme/palette.go and ui/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, and Workload Detail had inconsistent key bindings, truncated multi-column cards, and no column switching.
  • Implementation Details: Implemented ui.DetailColumns (NewDetailColumns, HandleInput, SetExpanded, PreserveScroll, SectionHeader) in ui/detail_columns.go and adopted it across views/node/detail.go, views/pod/detail.go, and views/container/detail.go. Updated views/workloads/detail.go so Workload Detail opens with initial focus on Owned Pods, and updated ui/help_modal.go and ui/footer_context.go for 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] Overview and [4] Network queried GetNodeMetrics independently, allowing cluster network RX and TX totals to drift between tabs.
  • Implementation Details: Added Controller.getNodeMetricsSnapshot with generation-tracked nodeMetricsCache invalidation on SetMetricsSource in k8s/client_controller.go, shared across k8s/summary_controller.go and k8s/network_controller.go.
  • Impact & Behavioral Notes: Cluster RX/TX throughput displayed in [4] Network Summary matches [1] Overview while 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.go and views/network/page.go to render balanced 1:1 equal-height split tables, added ui.Icons.FileCabinet (🗄) in ui/icons.go for PersistentVolumeClaims, and assigned ui.Icons.Disc (💿) to PersistentVolumes.
  • 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-server or --metrics-source=none lacked explicit availability signaling across secondary tabs.
  • Implementation Details: Updated k8s/storage_controller.go, k8s/network_controller.go, and k8s/workloads_controller.go together with summary panels in views/storage/summary.go, views/network/summary.go, and views/workloads/summary.go to surface clear unavailable states 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.0 tab ordering, modals, detail cards, and ~/.ktop/ktop.log session log path.
  • CLI, Telemetry & Headless Docs: Corrected --show-all-columns default and component coverage in docs/cli.md, documented Component SLI deductions and JSONL fields in docs/noui.md, updated GA metrics.k8s.io/v1 and degradation notes in docs/metrics-server.md, and expanded docs/prometheus.md.
  • Screenshots & Vector Diagrams: Added 7 v0.8.0 TUI 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 ktop plugin invocation, ~/.ktop/config.yaml, and --noui JSON/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-columns defaults to false.
  • Migration Actions: If scripts or habits relied on tab 3 for Events or --show-all-columns defaulting on, switch to key 5 / --page=events and pass --show-all-columns explicitly when needed.

Repository Metrics

 82 files changed, 5927 insertions(+), 1128 deletions(-)