Merge pull request #136689 from kfess/bugfix/windows-plugin

Fix kubectl plugin list overshadow detection on Windows
This commit is contained in:
Kubernetes Prow Robot 2026-02-17 23:31:39 +05:30 committed by GitHub
commit 09259d3dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,8 +217,7 @@ func (v *CommandOverrideVerifier) Verify(path string) []error {
}
// extract the plugin binary name
segs := strings.Split(path, "/")
binName := segs[len(segs)-1]
binName := filepath.Base(path)
cmdPath := strings.Split(binName, "-")
if len(cmdPath) > 1 {