Commit fab3d23b authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #45669 from danwinship/kubectl-plugin-dirs

Automatic merge from submit-queue (batch tested with PRs 45684, 45266, 45669, 44787, 44984) Fix XDG-based kubectl plugin dirs XDGDataPluginLoader messed up its default-value handling for `XDG_DATA_DIRS` and ends up scanning *all of /usr/share* looking for plugins if you don't have that set :-O /release-note-none /assign @fabianofranz
parents 1d4f0b4a 415fe527
...@@ -145,10 +145,10 @@ func XDGDataPluginLoader() PluginLoader { ...@@ -145,10 +145,10 @@ func XDGDataPluginLoader() PluginLoader {
} }
return TolerantMultiPluginLoader{ return TolerantMultiPluginLoader{
&DirectoryPluginLoader{ &DirectoryPluginLoader{
Directory: "/usr/local/share", Directory: "/usr/local/share/kubectl/plugins",
}, },
&DirectoryPluginLoader{ &DirectoryPluginLoader{
Directory: "/usr/share", Directory: "/usr/share/kubectl/plugins",
}, },
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment