Skip to content

Context switch no longer possible if connection is lost #3471

@Pionerd

Description

@Pionerd




Describe the bug
If the connection to the current kubernetes cluster is no longer working (e.g. because of a shut down VPN), switching contexts (:ctx) is no longer possible and k9s hangs and needs to be restarted.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to a private cluster over VPN.
  2. Browse a random resource, e.g. :po.
  3. Disconnect the VPN connection.
  4. Try to switch contexts to another cluster, k9s hangs.

Historical Documents
N/A

Expected behavior
Switching contexts to another cluster should be possible even when the connection to the current cluster is lost.

Screenshots
N/A

Versions (please complete the following information):

  • OS: Mac OS 15.5 (24F74)
  • K9s: 0.50.9
  • K8s: any

Additional context
Possibly related to / similar behavior as #3160

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions