Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to add clusters whose names already exist in the list #2354

Open
joaquimrocha opened this issue Sep 26, 2024 · 0 comments
Open

Allow to add clusters whose names already exist in the list #2354

joaquimrocha opened this issue Sep 26, 2024 · 0 comments
Labels
backend Issues related to the backend enhancement New feature or request frontend Issues related to the frontend

Comments

@joaquimrocha
Copy link
Collaborator

When loading clusters from a file, it will detect if we have clusters with that name configured and tell the user to edit the name before adding them, but this is not a great UX.

I think the solution for this could be:

  1. Suffix solution: add a suffix to the clashing names and suggest to the user that they can add those clusters with the proposed new suffix;
  2. User choice solution: allow the user to edit the name before they are allowed to actually load the cluster
  3. Allow name clashes from different origins: its unlilkely that the user wants to add the same exact cluster/context twice. But they may have the same cluster name in different config files. We could support this by including the notion of origin when referring to clusters both in backend and frontend. This would be about encoding the origin (kubeconfig file path, public cloud name+subscription, etc.) somehow.

We need to decide on one or more ways forward.

@dosubot dosubot bot added backend Issues related to the backend enhancement New feature or request frontend Issues related to the frontend labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issues related to the backend enhancement New feature or request frontend Issues related to the frontend
Projects
Development

No branches or pull requests

1 participant