Repository navigation
ktop Release v0.7.9
ktop v0.7.9 introduces the [4] Storage and [5] Network TUI tabs, live kubelet volume capacity and inode utilization telemetry, EndpointSlice readiness health tracking, cAdvisor network packet drop and error rates, matching --noui snapshot schema additions, and Pod Detail storage/network enrichments (#178).
Detailed Changes by Category
1. Storage Telemetry & [4] Storage Tab (prom, metrics, views/model, k8s, views/storage)
- Kubelet Volume Metrics Scraping (
prom/types.go,metrics/source.go,metrics/prom/prom_source.go): Addedkubelet_volume_stats_{capacity_bytes,used_bytes,available_bytes,inodes,inodes_used}toDefaultMetricAllowlistand implementedmetrics.VolumeStatsProvider(PromMetricsSource.GetAllVolumeStats) to aggregate per-PVC byte usage, fill percentage, and inode utilization percentages. - Storage View Models & Controller (
views/model/storage_model.go,k8s/client_controller.go,k8s/storage_controller.go): Added normalizedPVCModel,PVModel,StorageClassModel,StorageSummary, andStorageSnapshottypes alongside sorting helpers (SortPVCModelsBy,SortPVModelsBy). Added startup RBAC capability checks forStorageClassalongside existingPersistentVolumeandPersistentVolumeClaiminformers, exposingController.GetStorageSnapshotandSetStorageRefreshFunc. [4] StorageTUI Page (views/storage/summary.go,views/storage/page.go): Added a 1-line summary bar displaying bound/pending PVCs,>=85%fill alert count, PV bound totals, StorageClasses, used/capacity totals, and disk read/write rates, paired with interactive sortable/filterablePersistentVolumeClaims(FILL%andINODES%highlighted at>=85%warning and>=95%error thresholds) andPersistentVolumestables,yclipboard copy,/row filtering, global namespace filter sync, andEnterYAML inspection modals.
2. Network Telemetry & [5] Network Tab (prom, metrics, views/model, k8s, views/network)
- cAdvisor Drop & Error Counters (
prom/types.go,prom/scraper.go,metrics/source.go,metrics/prom/prom_source.go): Addedcontainer_network_{receive,transmit}_{packets_dropped,errors}_totaltoDefaultMetricAllowlistand updatedshouldKeepCAdvisorSeriesto retain both node-root (id="/") and pod-sandbox (container="POD") series for drop and error counters. Implementedmetrics.NetworkErrorsProvider(GetClusterNetworkErrorRatesandGetPodNetworkErrorRates). - Network View Models & Controller (
views/model/network_model.go,k8s/client_controller.go,k8s/network_controller.go): Added normalizedServiceModel(withHasEndpointAlert()),IngressModel,NodeNetworkModel,NetworkSummary, andNetworkSnapshottypes withSortServiceModelsByandSortIngressModelsBy. Added RBAC-gated informers forService,EndpointSlice(discovery.k8s.io/v1), andIngresswith deduplicated ready/total endpoint aggregation inController.GetNetworkSnapshot. [5] NetworkTUI Page (views/network/summary.go,views/network/page.go): Added a summary strip reporting total Services, zero-endpoint alert counts, Ingresses, cluster RX/TX throughput, and drop/error rates, paired withServices(highlighting selector-backed services with zero ready endpoints) andIngressestables,/row filtering,ycopy, andEnterYAML modals.
3. Snapshots, Pod Detail, Navigation & Documentation (internal/snapshot, collector, views/overview, views/pod, application, config, cmd, ui, docs, hack/load-test)
- Headless Snapshot & Collector Support (
internal/snapshot/snapshot.go,internal/snapshot/builder.go,collector/collector.go,collector/k8s_provider.go): ExtendedSnapshot,BuildInput, andcollector.AggregatewithStorage(*StorageData) andNetwork(*NetworkData) sections, addedVolumeUsages,NetworkDropsPerSec, andNetworkErrorsPerSeconPodData, and updatedSnapshot.Clone()to deep-copy all nested slices. - Pod Detail Enrichments (
views/overview/main_panel.go,views/pod/detail.go): Joined mounted PVC usage stats and per-pod network drop/error rates inbuildPodDetailData, renderingPVCs:fill percentages (colored at>=85%and>=95%) and non-zeroNetErr:counters inside the Pod Detail view. - Navigation, CLI, Docs & Load Test Fixtures (
application/,config/,cmd/,ui/,docs/,hack/load-test/): Registered[4] Storage(PageStorage) and[5] Network(PageNetwork), addedstorageandnetworkto--page/ui.default_pagevalidation andui.StorageContext/ui.NetworkContextfooters, updateddocs/cli.md,docs/noui.md, anddocs/prometheus.md, and expandedhack/load-test/with live PVC/PV disk I/O and Service/Ingress/HTTP traffic workloads.
Upgrade & Compatibility Notes
- Backward Compatibility: Fully compatible with existing CLI flags,
kubectl ktopplugin invocation,~/.ktop/config.yaml, and existing--nouiJSON/JSONL consumers; newstorage,network, and per-pod fields are additive withomitempty. - RBAC Resilience:
StorageClass,Service,EndpointSlice, andIngressinformers probe cluster permissions on startup and degrade without error if RBAC restricts listing optional resources. - Deprecations & Migration Actions: None.
Repository Metrics
43 files changed, 5423 insertions(+), 86 deletions(-)
- Documentation: