• Danny Shemesh's avatar
    Added windows executable extensions to Kubectl plugins · aae1944a
    Danny Shemesh authored
    Currently, the kubectl plugins system - when running under Windows - will determine that a plugin is executable
    by looking at its extension, comparing it to '.exe'.
    
    I think we should allow plugins w/ a few more known extensions (.bat, .com, .cmd; for example) -
    This would give more of a similar experience to plugins under *nix, where shell scripts are often used.
    
    Moreover, there were two windows-specific behaviors that were redundant,
    which I've removed:
    
    1. In plugin.go - There's no need to differentiate between windows and
    under OS-es when looking at the PATH variable; It can be refered as 'PATH'
    in Windows as well
    
    2. In cmd.go - There's no need to append a suffix when looking up
    plugins on windows; One can safely use 'exec.LookPath' without a suffix
    on Windows - and get automatic resolving for known executable types
    aae1944a
Name
Last commit
Last update
..
annotate Loading commit data...
apiresources Loading commit data...
apply Loading commit data...
attach Loading commit data...
auth Loading commit data...
autoscale Loading commit data...
certificates Loading commit data...
clusterinfo Loading commit data...
completion Loading commit data...
config Loading commit data...
convert Loading commit data...
cp Loading commit data...
create Loading commit data...
delete Loading commit data...
describe Loading commit data...
diff Loading commit data...
drain Loading commit data...
edit Loading commit data...
exec Loading commit data...
explain Loading commit data...
expose Loading commit data...
get Loading commit data...
help Loading commit data...
label Loading commit data...
logs Loading commit data...
options Loading commit data...
patch Loading commit data...
plugin Loading commit data...
portforward Loading commit data...
proxy Loading commit data...
replace Loading commit data...
rollingupdate Loading commit data...
rollout Loading commit data...
run Loading commit data...
scale Loading commit data...
set Loading commit data...
taint Loading commit data...
testing Loading commit data...
top Loading commit data...
util Loading commit data...
version Loading commit data...
wait Loading commit data...
BUILD Loading commit data...
alpha.go Loading commit data...
cmd.go Loading commit data...
cmd_test.go Loading commit data...
profiling.go Loading commit data...