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

gke-gcloud-auth-plugin opens a new command line window on Windows when connecting to GKE clusters #2449

Open eranbetzalel opened 4 days ago

eranbetzalel commented 4 days ago

When using the Headlamp UI to connect to Google Kubernetes Engine (GKE) clusters, the gke-gcloud-auth-plugin opens a new command line window on every connection. This issue only occurs on Windows and seems to be related to how external commands are executed in the LoadAndStoreKubeConfigs function.

Steps to Reproduce:

  1. Use Headlamp on a Windows system.
  2. Configure a GKE cluster using the gke-gcloud-auth-plugin.
  3. Connect to the cluster via Headlamp.
  4. Observe that a new command line window opens during authentication.

Expected Behavior: Headlamp should authenticate with GKE in the background without opening additional command line windows.

Environment:

Additional Context: The issue might stem from how external commands are invoked in the LoadAndStoreKubeConfigs function. It would be helpful if the plugin execution could be run in a hidden/background mode, especially for Windows users.

Thank you for your time and consideration in looking into this!

illume commented 1 day ago

Thanks @eranbetzalel

This is a related issue: https://github.com/headlamp-k8s/headlamp/issues/2346