kubectl-windows
kubectl-windows copied to clipboard
kubectl windows should use %USERPROFILE%/.kube as expected location for config file
Windows does not have an environment variable "HOME" by default, but does have "USERPROFILE". Would it make more sense to default the config location to %USERPROFILE%/.kube/config on Windows so users don't need to know to create a variable HOME? Thanks!
Maybe. You could send a PR if you want to! It would need to include a recompilation of the binary as well. EDIT: Actually I'm not sure if we would need a new binary. Maybe an update to the documentation would be enough.
@eirslett I have the 1.5.0 binary. If you give me permissions to this repo I'd like to add the binary to the repo releases.
Windows 10 Enterprise seems to be missing the %USERPROFILE% variable. I've seen this on several installs with different users
On Windows program configuration settings typically go under %LOCALAPPDATA% or %APPDATA% , both of which are usually under %USERPROFILE%\AppData. The former stays only on the current system, while the latter migrates around from one system to another (this is in the context of multiple machines joined to the same domain and a domain user moving from one machine to another).