Closed elibrody closed 6 months ago
Hi @elibrody
I have a question to be able to reproduce the issue Do you remember how have you installed kubectl?
meanwhile you can try to open the application by powershell it should work
I downloaded kubectl and added it to my windows path
I just tried removing the path and installing with winget install -e --id Kubernetes.kubectl
as seen here and have the same results even when running K8sStudio via powershell kubectl in powershell works perfectly tho
See logs displayed in powershell
AppData\Local\Programs\K8Studio\resources\app.asar\dist\main (node:37924) DeprecationWarning: findLogPath() is deprecated and will be removed in v5. (Use `K8Studio --trace-deprecation ...` to show where the warning was created) CHECKING FOR UPDATES..... 09:53:37.879 > Checking for update 09:53:37.881 > checking-for-update 09:53:38.710 > Update for version 0.2.3-alpha is not available (latest version: 0.2.3-alpha, downgrade is disallowed). 09:53:38.712 > update-not-available 09:53:38.714 > checkForUpdatesAndNotify called, downloadPromise is null (node:37924) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. Error: Command failed: kubectl config use-context default 'kubectl' is not recognized as an internal or external command, operable program or batch file.
Hi @elibrody
Have you reopened the app after installing with winget ?
I have done those steps to try to reproduce the issue
The app is working for me Is there anything I'm missing?
and btw I was testing using v1.0.0-beta
Hi @elibrody
Have you reopened the app after installing with winget ?
I have done those steps to try to reproduce the issue
- Deleted my Kubectl and have checked through cmdline it's deleted
- Installed kubectl by winget
- opened the app
The app is working for me Is there anything I'm missing?
and btw I was testing using v1.0.0-beta
@mo-othman That is what I tested one thought where is your K8sStudio installed? mine is at C:\Users\%UserName%\AppData\Local\Programs\K8Studio
I tested in both 1.0.0-Beta and in the latest release from yesterday I will try to disable my AV to see if its related to that I dont think so as I dont see anything in the logs
Yes installed in the same path
Any results after disabling the AV?
I tried this today so far no luck
Hi @elibrody
Is kubectl working when using cmd (command prompt)? also when you do "which kubectl" in cmd what's the path you are getting?
Kubectl is working correctly the kubeconfig is working correctly as long as im in powershell cmd does not seem to work
when running the powershell alternative for the which kubectl
command is
Get-Command kubectl
or shorthand is gcm kubectl
returns C:\Users\username\AppData\Local\Microsoft\WinGet\Links\kubectl.exe
when running $env:ComSpec in powershell what do you get as a default shell?
That's a great find it was set to cmd switched it to powershell all works now thanks
Yes exactly!
We will review those part and hopefully the application can be better at handling this
Thanks and even if you can't fix it at least adding a log saying to check default shell or a note in the docs is a great start (will try to do a pr at some point
kubectl in powershell works but for some reason im getting this I did define the location of the kubeconfig file in settings