diff --git a/pkg/kubectl/cmd/plugin/plugin.go b/pkg/kubectl/cmd/plugin/plugin.go index e8463f0455..b52acd149a 100644 --- a/pkg/kubectl/cmd/plugin/plugin.go +++ b/pkg/kubectl/cmd/plugin/plugin.go @@ -229,7 +229,7 @@ func isExecutable(fullPath string) (bool, error) { fileExt := strings.ToLower(filepath.Ext(fullPath)) switch fileExt { - case ".bat", ".cmd", ".com", ".exe": + case ".bat", ".cmd", ".com", ".exe", ".ps1": return true, nil } return false, nil