Repository navigation
Description
Friction
The Kubernetes tab of devops dashboard and its Logs tab do a part of what k9s does, and k9s is already pinned and installed. VISION item 15 says that devops dashboard covers only what no open tool covers. #1885 audits each dashboard tab against open tools. This item is the result of that audit for the Kubernetes and Logs tabs. Four open items (#807, #808, #809, #811) would add more code to the same tab.
Evidence
What the tabs do, and what k9s v0.51.0 does in their place:
| Dashboard | k9s |
|---|---|
| Pod list for all namespaces, with status, restarts and age | k9s -A -c pods |
| Namespace selector | :ns |
/ filter by namespace, name or status |
/ (regex), /-l <selector> (labels) |
e: the events of a pod (ui/pod_inspector.py) |
d (describe; the events are at the end) |
| Logs tab: live log of a pod, container switch | l on a pod; Enter opens its containers |
| Count of Ready nodes in the banner | :nodes, with CPU and memory use and the GPU columns |
r: refresh |
Not needed: k9s watches each resource that it shows |
- k9s v0.51.0 is in
src/devops_cli/tools_lock/tools.lockwith a SHA-256 for each platform.devops install-toolsand the devcontainer post-create install it (docs/DEVCONTAINER_USAGE.md).k9s --helpof v0.51.0 has-A,-c,--contextand--readonly. - The installed k9s v0.51.0 binary holds the node view columns
GPU/AandGPU/Cfornvidia.com/gpuandamd.com/gpu(stringsof the binary, 2026-10-25). - The Logs tab streams only pod logs. Its one source is
pod_log_source(ui/dashboard.py:308), and its title is "Select a pod on the Kubernetes tab" (ui/dashboard.py:213). - These stay, because other commands use them:
KubernetesService.read_pod_logs(commands/argo.py,commands/k8s/cluster_context.py),PodInfo(k8s/informer.py,output/formatters/tables.py) andk8s/service_http.py(the Telemetry and Valkey tabs).
What the tabs do that k9s does not:
devops dashboard --summaryprints the pods, unhealthy pods first, without a full-screen interface.kubectl get pods -Agives the same data.- One window holds the Kubernetes, Docker, Telemetry and Valkey tabs. k9s shows only Kubernetes. The other tabs stay until refactor(ui): audit five dashboard tabs against open tools #1885 decides them.
Request cost:
- Now: while the dashboard runs, each refresh (default 5 seconds,
--refresh-interval) sends one LIST of every pod in all namespaces and one LIST of every node (fetch_k8s_statusand_node_readinessinui/data_providers.py). - k9s: it lists each resource that it shows one time and then watches it. For the CPU and memory columns, it reads
metrics.k8s.ioat its refresh rate (refreshRate, default 2 seconds). It sends nothing when it does not run. - No GitHub requests in either case.
Proposed remedy
Delete the two tabs and everything that only they use. The lists come from function and class names on origin/main 1bb164b. Check the users of each name with grep when you write the change.
Source:
ui/log_buffer.py(186 lines) andui/pod_inspector.py(114 lines), the whole files.ui/widgets.py:K8sPanelandLogPane(about 410 lines), their__all__entries and their imports.ui/projections.py:_k8s_nodes,k8s_banner,k8s_filter_banner,k8s_pod_row,k8s_rows,k8s_identities,pod_matches,filter_pods,namespace_choices,pod_container_names,pod_container_rowsandpod_event_rows(about 80 lines), and their registry entries.ui/data_providers.py:K8sSummary,_get_k8s_client,_in_a_pod,_kubeconfig_context,_k8s_context_name,_node_readiness,fetch_k8s_statusandfetch_pod_events(about 90 lines).ui/refresh.py:PodLogSource,pod_log_sourceand the Kubernetes provider entry (about 50 lines).ui/dashboard.py:_tail,action_next_container, the LogsTabPane, thelbinding, theK8sPanelentry of_PANELS, the pod handler ofon_data_table_row_selectedand the pod lines of the help screen.commands/dashboard.py:_render_k8s_paneland its call from--summary.config/constants.py:3093-3142:CONST_DASHBOARD_DOMAIN_K8S, its entries in the domain list, the labels and the tab focus, andCONST_LOGS_TAB_ID.config/defaults.py:765-767:DEFAULT_K8S_POD_EVENT_LIMITandDEFAULT_DASHBOARD_SUMMARY_POD_ROWS.lang/en/help.py:1606and the--tabdefault: the first tab becomes Docker, and the help becomes(1=docker, 2=telemetry, 3=valkey).tests/fixtures/swallowed_failures_ceilings.json: lower the ceiling of each changed module to what stays.
Tests: delete the pod, log and inspector tests in tests/test_ui_reactive.py (63 functions by name, about 980 lines) and tests/test_ui_dashboard.py (7 functions, about 120 lines). Keep the PodInfo tests in tests/test_k8s_models.py.
Docs: devops docs generate --sync-readme refreshes docs/commands/dashboard.md, docs/commands/tui.md and docs/CLI_REFERENCE.md. In docs/DEVCONTAINER_USAGE.md, say that k9s replaces the Kubernetes and Logs tabs.
What it deletes
About 890 source lines and about 1,100 test lines (counted by function and class names; count the exact set in the change), and the 5-second poll of the cluster.
Pin and config to ship
None. k9s v0.51.0 is already in tools.lock. k9s reads the kubeconfig contexts that devops k8s uses. Its defaults show what the tabs show, so no k9s config is shipped.
Person-run steps
None to install. To look at the cluster with no risk of a change, start k9s with --readonly.
Existing Tool Considered
k9s (https://k9scli.io, Apache-2.0, maintained; v0.51.0 released 2026-06-06).
Cost (written)
The change deletes code, so it has no upkeep. It needs about half a day and about 30k to 50k tokens (estimate), most of it for the many small edits.
Related
- refactor(ui): audit five dashboard tabs against open tools #1885: the audit. This item is its Kubernetes and Logs section.
- fix(dashboard): --tab with an unknown tab ends with a ValueError traceback, and refresh_all has no caller #1904:
--tabwith an unknown tab. The tab list changes here. - test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334: the split of the dashboard test suite. This item removes a part of it.
- feat(k8s): node capacity and GPU allocation in the dashboard's Kubernetes tab #807 and feat(k8s): restart a pod's workload from the CLI and the dashboard #809 are closed as not planned, because k9s covers them. feat(k8s): pod manifest view with masked env values in the dashboard #808 (masked pod manifest) and feat(k8s): port-forwards and service URLs in the dashboard #811 (port-forwards and service URLs in the dashboard) lose their tab. A person decides them.
Acceptance criteria
devops dashboardstarts on the Docker tab and has no Kubernetes tab and no Logs tab.devops dashboard --summaryprints no Kubernetes panel and sends no request to a cluster.- No module under
src/devops_cli/ui/imports thekubernetespackage,devops_cli.k8s.serviceordevops_cli.k8s.context. - The dashboard tests pass with three domains, and
devops docs checkpasses.
Source: #1885
regression of #1883
Proposed design
Problem statement
The devops dashboard Kubernetes tab and Logs tab duplicate functionality that k9s v0.51.0 already provides. k9s is pinned in tools.lock and installed by devops install-tools. This item deletes both tabs and all code that only they use. It removes about 890 source lines, about 1,100 test lines, and the 5-second cluster poll.
Acceptance criteria
- Criterion 1:
devops dashboardstarts on the Docker tab and shows no Kubernetes tab and no Logs tab.
Verification: Rundevops dashboardin a terminal. Confirm the first tab is Docker and the tab bar shows only Docker, Telemetry, and Valkey. - Criterion 2:
devops dashboard --summaryprints no Kubernetes panel and sends no request to a cluster.
Verification: Rundevops dashboard --summarywith no cluster running. Confirm no Kubernetes section appears in the output and no connection error is shown. - Criterion 3: No module under
src/devops_cli/ui/imports thekubernetespackage,devops_cli.k8s.service, ordevops_cli.k8s.context.
Verification: Rungrep -r 'import kubernetes\|from kubernetes\|devops_cli.k8s.service\|devops_cli.k8s.context' src/devops_cli/ui/. Confirm no matches. - Criterion 4: The dashboard tests pass with three domains and
devops docs checkpasses.
Verification: Runuv run pytest tests/test_ui_reactive.py tests/test_ui_dashboard.pyanduv run devops docs check. Confirm both pass.
Key questions
- What is the status of feat(k8s): pod manifest view with masked env values in the dashboard #808 and feat(k8s): port-forwards and service URLs in the dashboard #811 after this item is delivered?: They lose their tab. A person decides whether to close them or redirect them to another surface. This decision does not block delivery of this item. (proposed)
- What entries in
swallowed_failures_ceilings.jsonchange?:src/devops_cli/ui/pod_inspector.py(ceiling 1) is removed because the file is deleted. The ceilings ofsrc/devops_cli/ui/dashboard.py(1),src/devops_cli/ui/data_providers.py(11),src/devops_cli/ui/refresh.py(1), andsrc/devops_cli/ui/widgets.py(2) are lowered to match the remaining code. [sources: tests/fixtures/swallowed_failures_ceilings.json] - Does this item depend on fix(dashboard): --tab with an unknown tab ends with a ValueError traceback, and refresh_all has no caller #1904 or test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334?: No. fix(dashboard): --tab with an unknown tab ends with a ValueError traceback, and refresh_all has no caller #1904 handles an unknown
--tabvalue and works regardless of which tabs exist. test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334 splits the dashboard test suite; this item removes a part of it. Neither must be done first. (proposed)
Open questions
- What code stays because other commands or tabs use it? (missing verified source)
- What is the new default tab and the new tab order after deletion? (missing verified source)
- What happens to the
--summaryKubernetes panel? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-03: not-applicable.
Class: refactor, no search.
Tool: none found.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 25, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate proposes to refactor the UI by deleting tabs, which is a refactor type.The change affects UI and tool usage but does not fix a defect or add new features.The change improves user experience by removing redundant tabs and aligns with existing tooling.Deleting tabs and related code requires identifying and removing multiple files and references.dan-petty commentedon Oct 28, 2026
Refine cannot set this item to Ready at bb46660 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
--summaryKubernetes panel? (missing verified source)devops-cli-service commentedon Nov 3, 2026
Alternatives check: not-applicable
Class: refactor. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-03. A person decides what this means for the item. The check changes no label and closes no issue.
[-]refactor(ui): delete the dashboard Kubernetes and Logs tabs; k9s replaces them[/-][+]refactor(ui): Delete the Kubernetes and Logs dashboard tabs[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 64 characters, and the limit is 60. The type and the scope stay.
refactor(ui): delete the dashboard Kubernetes and Logs tabs; k9s replaces themrefactor(ui): Delete the Kubernetes and Logs dashboard tabsrefactor(ui): delete kubernetes and logs dashboard tabs
devops-cli-service commentedon Nov 9, 2026
Released in v0.103.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.103.0
devops-cli-service commentedon Nov 9, 2026
Live since 2026-11-09 21:49 UTC