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

How to prevent automatically OIDC (kubelogin) when opening Headlamp (specifically through CLI) #2217

Closed benlei closed 2 months ago

benlei commented 2 months ago

To connect to my K8s cluster I use kubelogin... and from https://github.com/headlamp-k8s/headlamp/issues/1716#issuecomment-2028794002 it turns out I could use Headlamp if I run it through the command line (/Applications/Headlamp.app/Contents/MacOS/Headlamp)

But strangely it seems that Headlamp tries to connect to each cluster to get its status.... is there a way to turn it off/make it load as necessary? Otherwise if I have multiple clusters with difference OIDC endpoints it'll open a bunch of login windows for clusters I don't really need to check up on.

joaquimrocha commented 2 months ago

I think this is a duplicate of https://github.com/headlamp-k8s/headlamp/issues/2165 . cc/ @illume

benlei commented 2 months ago

Yep I think it's more or less the same. Will close