Skip to content

Reconnecting an already-connected cluster creates a duplicate entry instead of updating it #6

Description

@rishibaghel25

Describe the bug
Adding a cluster via kubeconfig upload when that same cluster (same name/context) is already connected creates a second, separate entry in the Clusters list rather than detecting the existing connection and updating/reusing it.

Steps to reproduce

  1. Connect a cluster via + Connect cluster → upload kubeconfig → pick a context (e.g. kind-kind)
  2. Later, connect the same kubeconfig/context again (e.g. because the first connection ended up in an error state and you're retrying)
  3. Observe two separate kind-kind entries in the Clusters list instead of one

Expected behavior
Reconnecting the same cluster/context should either update the existing entry in place, or clearly prompt "this cluster is already connected, replace it?" rather than silently creating a duplicate.

Additional context
This compounds with #(error issue below) — repeated failed connection attempts each leave behind another broken duplicate entry rather than retrying against the existing one.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions