ahmetb / kubectl-tree

kubectl plugin to browse Kubernetes object hierarchies as a tree 🎄 (star the repo if you are using)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Manual Install for WSL

JHBalaji opened this issue · comments

commented

I did manual install for the krew and it seemed to work but again when installing this plugin I hit the same issue with path and permission denied.
How can I compile/install this bin in my WSL?

Updated the local copy of plugin index. Installing plugin: tree W0506 11:06:06.719951 6465 install.go:138] failed to install plugin "tree": install failed: failed while moving files to the installation directory: could not rename/copy directory "/tmp/krew-temp-move234479147" to "/home/user_name/.krew/store/tree/v0.4.0": rename /tmp/krew-temp-move234479147 /home/user_name/.krew/store/tree/v0.4.0: permission denied F0506 11:06:06.735376 6465 root.go:77] failed to install some plugins: [tree]: install failed: failed while moving files to the installation directory: could not rename/copy directory "/tmp/krew-temp-move234479147" to "/home/user_name/.krew/store/tree/v0.4.0": rename /tmp/krew-temp-move234479147 /home/user_name/.krew/store/tree/v0.4.0: permission denied

commented

I copied the binary to the /home/user_name/.krew/store/tree/v0.4.0 and ran an upgrade. I was able to access the plugin as kubectl-tree for now.

It seems you were using Krew. Are you sure this path is writable?

Can you please try this:

mkdir -p /home/user_name/.krew/store/tree/0.4.0

and see if it works?

commented

It seems you were using Krew. Are you sure this path is writable?

Can you please try this:

mkdir -p /home/user_name/.krew/store/tree/0.4.0

and see if it works?

Krew has path issues in WSL so most mount to root in C or use KREW_ROOT. Path is writable. @159 helped me.

Please open an issue in Krew repo if any. I've tested it before with WSL and it has worked fine.