headlamp-k8s / headlamp

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

Invalid kubeconfig file: Maximum call stack size exceeded #2565

Open dbloquel opened 2 days ago

dbloquel commented 2 days ago

Describe the bug

When loading kube config, it return this error : Invalid kubeconfig file: Maximum call stack size exceeded

To Reproduce

I guess you'll need a "big" kube config file. For security reason I cannot paste mine but it is 673 lines long.

Environment (please provide info about your environment):

Are you able to fix this issue?

No

Additional Context

knrt10 commented 2 days ago

Hi @dbloquel, Can you please confirm, if you are loading the kubeconfig file on startup or adding a cluster using Add cluster button?

Also are you running the web app or application or deployed using Helm.

I started Headlamp with 699 lines of kubeconfig and it seems to work on Mac. I am running web app. Sharing some screenshots. PTAL. Thanks

Screenshot 2024-11-14 at 11 35 53 AM Screenshot 2024-11-14 at 11 36 00 AM Screenshot 2024-11-14 at 11 36 24 AM
dbloquel commented 1 day ago

Hello @knrt10

I am using the app on windows and using the add cluster button.

I tried a new kube config with only one cluster and it works. My kube config works with other products but just to be sure I will try to rebuild a new one with all the clusters.

I'll let you know

joaquimrocha commented 1 day ago

Hi @dbloquel , can you confirm whether this happens with Headlamp 0.26.0?