kubectl-windows icon indicating copy to clipboard operation
kubectl-windows copied to clipboard

kubectl windows should use %USERPROFILE%/.kube as expected location for config file

Open giffinj opened this issue 9 years ago • 4 comments
trafficstars

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!

giffinj avatar Sep 08 '16 18:09 giffinj

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 avatar Sep 09 '16 10:09 eirslett

@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.

samuelms1 avatar Dec 13 '16 19:12 samuelms1

Windows 10 Enterprise seems to be missing the %USERPROFILE% variable. I've seen this on several installs with different users

Krylon360 avatar Dec 22 '16 23:12 Krylon360

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).

mattdelco avatar Jan 02 '18 18:01 mattdelco