ahmetb / kubectl-tree

kubectl plugin to browse Kubernetes object hierarchies as a tree 🎄 (star the repo if you are using)
Apache License 2.0
2.91k stars 118 forks source link

fix: do not fail if missing permissions #54

Open carlossg opened 2 years ago

carlossg commented 2 years ago

to some CRDs

Continue and display the tree with the objects that we can access

ahmetb commented 2 years ago

This should be a user visible warning if anything (not a -v=2).

Ideally we still fail, but the error can say "use -ignore-errors to continue", and that's when it works like this. What do you think?

carlossg commented 2 years ago

should it force the user to always use the flag (it can be too annoying) or just print a line for each item that could not be fetched?

ahmetb commented 2 years ago

I think printing warning can be ok, but ideally at least there should be a way to still fail if that's what a user wants.