Skip to content

feat(k8s): port-forwards and service URLs in the dashboard #811

Closed as not planned

Description

@dan-petty

Context & Rationale

#686 asked for a port-forward manager and a service URL table. The CLI already has port-forward, port-forward-status and port-forward-stop (src/devops_cli/commands/k8s/init.py:110-112), and it can discover ingress hosts (_discover_ingress_hosts, src/devops_cli/commands/k8s/networking.py:609). A view that lists forwards needs the state file to resolve from any directory, which the separate state-file fix delivers.

Scope & Deliverables

  • Deliverable: a dashboard view that lists live port-forwards and ingress hosts, with a key that stops a forward.
  • Acceptance criteria:
    • The view lists the same forwards as devops k8s port-forward-status.
    • Stopping a forward from the view ends its process group.
    • Tests spawn no real kubectl and touch no network.
  • Key questions: should the view start forwards too? No, only list and stop them (proposed).
  • Constraint: discovery runs on worker threads, and process-group termination follows AGENTS.md's guarded killpg rules.

Strategic Alignment

Proposed design

Problem statement

The issue asks for a dashboard view that lists live port-forwards and ingress hosts, with a key to stop a forward. The Kubernetes tab that hosts this view is deleted by #2231 because k9s v0.51.0 already provides port-forward management. The state-file dependency #810 is closed as not planned. A person must decide whether to close this issue as not planned or re-scope it.

Acceptance criteria

  • Criterion 1: The view lists the same forwards as devops k8s port-forward-status.
    Verification: Run devops k8s port-forward-status and compare its output with the dashboard view output.
  • Criterion 2: Stopping a forward from the view ends its process group.
    Verification: Stop a forward from the view and confirm the process group is terminated.
  • Criterion 3: Tests spawn no real kubectl and touch no network.
    Verification: Run the test suite and confirm no kubectl process is spawned and no network call is made.

Key questions

  • Should the view start forwards too?: No, only list and stop them. (proposed)

Fit

Fits in one pull request.

Suspected block

A person must decide whether to close this issue as not planned or re-scope it, because #2231 deletes the Kubernetes tab and #810 is closed as not planned.

Dependencies

None.

Activity

  1. added
    type/feature
    scope/k8s
    priority/p3-low
    on Oct 1, 2026
  2. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Dependency update (consolidation, 2026-10-03): #810 is merged into #1036, which now resolves the port-forward state file under the data directory. This item depends on #1036 in place of #810.

  3. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Linked: #807, #808 and #809. All four split from #686 and add to the Kubernetes tab's BINDINGS (ui/dashboard.py:169-183); whichever lands second checks its key is free. Found by the 2026-10-08 backlog review.

  4. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    This item cannot be built as written. It adds a view to devops dashboard, and #2231 deletes the Kubernetes tab that the view belongs to. Its dependency #810 (the port-forward state-file fix) is closed as not planned.

    Evidence (origin/main bb46660, 2026-10-28):

    No code was written. A person decides: close as not planned, or re-scope.

  5. 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.

  6. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Closed as not planned. The item conflicts with a more recent project direction:

    The evidence is in the comment above.

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

    priority/p3-lowscope/k8stype/feature

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions