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

Show parents/ancestors option #37

Closed tmshn closed 4 years ago

tmshn commented 4 years ago

Hi, thank you for the great plugin!

This is a feature request/idea: how about offering an option to show resource parents/ancestors (i.e.: reverse hierarchy). It's extremely useful when you have many CRDs and are confused which CR has others.

ahmetb commented 4 years ago

This is by design not supported so that the chosen object can be the root of the tree. Otherwise it might be part of a very large tree that might be hard to spot. 

ahmetb commented 4 years ago

Similarly an object might have more than one owner, in that case we don't wanna show multiple trees.