mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
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
This commit is contained in:
commit
fab3d23bcf
@ -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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user