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 confusion with duplicate names #65

Closed makkes closed 8 months ago

makkes commented 9 months ago

When a kind reports the same name for its singular and its plural version then kubectl-tree gets confused and there's no way for a user to query the tree for that specific kind.

With this commit, kubectl-tree eliminates duplicates in its internal list of names for a particular kind so that there's always an unambiguous way to specify which kind to query.

closes #64

makkes commented 8 months ago

@ahmetb Is there anything missing that you'd like me to add to get this in?

ahmetb commented 8 months ago

I think we gotta move to using the builtin packages for resource resolvers eventually. This is far too much to handle in a plugin sustainably. But ok for now.