headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.05k stars 149 forks source link

Something wrong with backslash in cluster name in kubeconfig #2139

Open mick1627 opened 2 months ago

mick1627 commented 2 months ago

Hello

We are looking for an alternative to openlens and Headlamp seems interesting but we have some issue with the login to our google anthos cluster. The login works well with other cluster when we use serviceaccount token.

The first issue I have is that Headlamp does not show the login button if there is backslash in the cluster name in the kube config. For our google anthos cluster the kubeconfig is created with gcloud command and it contains backslash

In the first screenshot you can see I have the login button "s'inscrire in french" I have manually edited the kubeconfig to remove backslash in the cluster name Capture

In the second one you can see the login button is missing, Capture1

With google anthos the cluster look like this : //gkemulticloud.googleapis.com/projects/x/locations/europe-west1/awsClusters/clustername

As I said it is generated with gcloud command and as we have a dozen of cluster we don't want to edit each one.

I also have this issue https://github.com/headlamp-k8s/headlamp/issues/2126 when I try to login to a cluster where I have removed the backslash in the name

yolossn commented 1 week ago

@mick1627 We have added a fix for this in the latest release. Can you check if this issue is solved for you?