kubeshop / monokle

Monokle is a set of OSS tools designed to help create and maintain high-quality Kubernetes configurations throughout the application lifecycle
https://monokle.io
MIT License
1.66k stars 126 forks source link

Setting KUBECONFIG in settings doesn't detect proper config file #4201

Open czaccardelli opened 7 months ago

czaccardelli commented 7 months ago

Describe the bug Setting the path to the KUBECONFIG I want to use in settings doesn't seem to properly read or detect that config file.

To Reproduce Steps to reproduce the behavior:

  1. Open settings
  2. Point to a new config file

Expected behavior Monokle detects the cluster specified in the config.

Screenshots I moved my default config directory to the location in the screenshot below and copied the config etc. over to it. image

As you can see, the config was set correctly and kubectl config view reads it perfectly fine.

image

But Monokle shows 'No cluster detected'. When I point Monokle to the original directory (i.e. the Windows default %USERPROFILE%.kube\config) it detects the cluster.

Desktop (please complete the following information):