alcideio / rbac-tool

Rapid7 | insightCloudSec | Kubernetes RBAC Power Toys - Visualize, Analyze, Generate & Query
Apache License 2.0
963 stars 69 forks source link

E0816 17:50:50.905695 32074 run.go:120] "command failed" err="unknown command \"rbac-tool\" for \"kubectl\"" #56

Closed w7089 closed 2 years ago

w7089 commented 2 years ago

What happened:

$ kubectl krew install rbac-tool
Updated the local copy of plugin index.
Installing plugin: rbac-tool
Installed plugin: rbac-tool
\
 | Use this plugin:
 |  kubectl rbac-tool
 | Documentation:
 |  https://github.com/alcideio/rbac-tool
/
WARNING: You installed plugin "rbac-tool" from the krew-index plugin repository.
   These plugins are not audited for security by the Krew maintainers.
   Run them at your own risk.

bash-5.0$ kubectl rbac-tool
E0816 17:50:50.905695   32074 run.go:120] "command failed" err="unknown command \"rbac-tool\" for \"kubectl\""

What you expected to happen:

Expected kubectl rbac-tool to run.

How to reproduce it (as minimally and precisely as possible):

Follow the steps I followed.

Anything else we need to know?:

Environment:

MacOS Monterey 12.2

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.1", GitCommit:"86ec240af8cbd1b60bcc4c03c20da9b98005b92e", GitTreeState:"clean", BuildDate:"2021-12-16T11:33:37Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:35:25Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}
gadinaor-r7 commented 2 years ago

@w7089 thanks for the info - can you please send the output of this ls -la ~/.krew/bin ?

Also, did you reinstall kubectl recently, after installing krew and rbac-tool?