Closed dove-young closed 2 years ago
Based on #748 I'm fairly sure you're doing something unusual. Messing with ~/.krew directory as you did in that issue will cause all sorts of trouble like this one.
To make sure, I just tried it and it works just fine.
/close /kind question
@ahmetb: Closing this issue.
kubectl krew
, it worksUsage: kubectl krew [command]
Available Commands: completion generate the autocompletion script for the specified shell help Help about any command index Manage custom plugin indexes info Show information about an available plugin install Install kubectl plugins list List installed kubectl plugins search Discover kubectl plugins uninstall Uninstall plugins update Update the local copy of the plugin index upgrade Upgrade installed plugins to newer versions version Show krew version and diagnostics
Flags: -h, --help help for krew -v, --v Level number for the log level verbosity
Use "kubectl krew [command] --help" for more information about a command. [root@st2-tunnel-dev1 bin]#
[root@st2-tunnel-dev1 bin]# kubectl krew list -v 9 I1214 19:50:31.385982 805717 root.go:221] Ensure creating dir: "/root/.krew" I1214 19:50:31.386041 805717 root.go:221] Ensure creating dir: "/root/.krew/store" I1214 19:50:31.386048 805717 root.go:221] Ensure creating dir: "/root/.krew/bin" I1214 19:50:31.386056 805717 root.go:221] Ensure creating dir: "/root/.krew/index" I1214 19:50:31.386062 805717 root.go:221] Ensure creating dir: "/root/.krew/receipts" This version of Krew is not supported anymore. Please manually migrate:
kubectl-krew version
also fails