headlamp icon indicating copy to clipboard operation
headlamp copied to clipboard

Option to rename a cluster?

Open waldner opened this issue 1 year ago • 3 comments

Sometimes it would be useful to be able to assign a custom name to an imported cluster (for example, because it's the same or too similar to an existing one). It seems to me that currently headlamp just takes the name it finds in the kubeconfig and that cannot be changed afterwards.

waldner avatar Jan 12 '24 12:01 waldner

Yup. We should have that. I will add it to the backlog.

joaquimrocha avatar Jan 12 '24 15:01 joaquimrocha

Working on this.

knrt10 avatar Feb 26 '24 12:02 knrt10

I think the UI needs a bit of tweaking. This is how it looked before: Error before

This is after my patch: Error after

Also, I added that restriction of only showing the UI if in electron, which was missing.

However, trying the logic again I see an issue: it renames but still is using the old name at some point. Error while authenticating to a renamed cluster

Renaming back to what it was originally also didn't work (didn't do the renaming back).

So I think this feature still needs some work and therefore it will be added for the next milestone.

joaquimrocha avatar May 28 '24 22:05 joaquimrocha