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

Fails if privileges are limited #60

Open cbndr opened 1 year ago

cbndr commented 1 year ago

In a production environment, users usually have limited privileges. In this case kubectl tree <kind> <name> fails with

Error: error while querying api objects: listing resources failed (<GVK>): <kind> is forbidden

I would suggest to print a warning for 403s but continue processing otherwise.

EDIT: Just saw there is already https://github.com/ahmetb/kubectl-tree/pull/55 for this. Please merge.

ahmetb commented 1 year ago

Just pushed some changes to #55. Do you have the means to try that branch out and see if it works as you expected?