headlamp-k8s / headlamp

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

Load Valid Contexts from Kubeconfig Despite Errors #1628

Closed joaquimrocha closed 1 month ago

joaquimrocha commented 10 months ago

In the testing for the latest release I have noticed that Headlamp was not loading any of the clusters in Mac and Windows (somehow in WSL it worked, maybe because the kubeconfig is different or because I didn't test correctly).

So we ended up having to revert the related commit: https://github.com/headlamp-k8s/headlamp/pull/1627

We need to check what is wrong in that code. I will share my (sanitized) kubeconfig privately.

knrt10 commented 7 months ago

Adding more information on this, currently the Headlamp returns no context even if there is one error with kubeconfig. As discussed with the team it is concluded we should not render Headlamp useless if there is even if only 1 issue in multi cluster setup.

We should show working clusters which are valid in Kubeconfig, and we still load it but have a way to report to the user what is wrong in Human readable way.

knrt10 commented 4 months ago

Started work on this.

illume commented 2 months ago

No one got to this yet, so moving to next release milestone.