Skip to content

refactor(ui): Delete the Kubernetes and Logs dashboard tabs #2231

Closed

Description

@dan-petty

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.lock with a SHA-256 for each platform. devops install-tools and the devcontainer post-create install it (docs/DEVCONTAINER_USAGE.md). k9s --help of v0.51.0 has -A, -c, --context and --readonly.
  • The installed k9s v0.51.0 binary holds the node view columns GPU/A and GPU/C for nvidia.com/gpu and amd.com/gpu (strings of 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) and k8s/service_http.py (the Telemetry and Valkey tabs).

What the tabs do that k9s does not:

  • devops dashboard --summary prints the pods, unhealthy pods first, without a full-screen interface. kubectl get pods -A gives 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_status and _node_readiness in ui/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.io at 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) and ui/pod_inspector.py (114 lines), the whole files.
  • ui/widgets.py: K8sPanel and LogPane (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_rows and pod_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_status and fetch_pod_events (about 90 lines).
  • ui/refresh.py: PodLogSource, pod_log_source and the Kubernetes provider entry (about 50 lines).
  • ui/dashboard.py: _tail, action_next_container, the Logs TabPane, the l binding, the K8sPanel entry of _PANELS, the pod handler of on_data_table_row_selected and the pod lines of the help screen.
  • commands/dashboard.py: _render_k8s_panel and 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, and CONST_LOGS_TAB_ID.
  • config/defaults.py:765-767: DEFAULT_K8S_POD_EVENT_LIMIT and DEFAULT_DASHBOARD_SUMMARY_POD_ROWS.
  • lang/en/help.py:1606 and the --tab default: 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

Acceptance criteria

  • devops dashboard starts on the Docker tab and has no Kubernetes tab and no Logs tab.
  • devops dashboard --summary prints no Kubernetes panel and sends no request to a cluster.
  • No module under src/devops_cli/ui/ imports the kubernetes package, devops_cli.k8s.service or devops_cli.k8s.context.
  • The dashboard tests pass with three domains, and devops docs check passes.

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 dashboard starts on the Docker tab and shows no Kubernetes tab and no Logs tab.
    Verification: Run devops dashboard in a terminal. Confirm the first tab is Docker and the tab bar shows only Docker, Telemetry, and Valkey.
  • Criterion 2: devops dashboard --summary prints no Kubernetes panel and sends no request to a cluster.
    Verification: Run devops dashboard --summary with 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 the kubernetes package, devops_cli.k8s.service, or devops_cli.k8s.context.
    Verification: Run grep -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 check passes.
    Verification: Run uv run pytest tests/test_ui_reactive.py tests/test_ui_dashboard.py and uv run devops docs check. Confirm both pass.

Key questions

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 --summary Kubernetes 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.

Activity

  1. added
    source/agent
    type/refactor
    on Oct 25, 2026
  2. dan-petty commented on Oct 25, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/refactor. The candidate proposes to refactor the UI by deleting tabs, which is a refactor type.
    • Priority: P2-Medium. The change affects UI and tool usage but does not fix a defect or add new features.
    • Value: Medium. The change improves user experience by removing redundant tabs and aligns with existing tooling.
    • Effort: High. Deleting tabs and related code requires identifying and removing multiple files and references.
  3. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    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.

    • 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 --summary Kubernetes panel? (missing verified source)
  4. added
    priority/p2-medium
    status/new
    value/medium
    effort/high
    on Oct 28, 2026
  5. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    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.

  6. changed the title [-]refactor(ui): delete the dashboard Kubernetes and Logs tabs; k9s replaces them[/-] [+]refactor(ui): Delete the Kubernetes and Logs dashboard tabs[/+] on Nov 6, 2026
  7. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    The job shortened the title of this item. The summary had 64 characters, and the limit is 60. The type and the scope stay.

    • Before: refactor(ui): delete the dashboard Kubernetes and Logs tabs; k9s replaces them
    • After: refactor(ui): Delete the Kubernetes and Logs dashboard tabs
    • Source of the summary: the background model
  8. added
    status/in-progress
    and removed
    status/new
    on Nov 9, 2026
  9. added a commit that references this issue on Nov 9, 2026
    bba0441
  10. added
    status/in-review
    and removed
    status/in-progress
    on Nov 9, 2026
  11. removed
    status/in-review
    on Nov 9, 2026
  12. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor
  13. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-09 21:49 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p2-mediumsource/agenttype/refactorvalue/medium

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions