ahmetb / kubectl-tree

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

Fix confusion with duplicate names #65

Closed makkes closed 1 year ago

makkes commented 1 year 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 1 year ago

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

ahmetb commented 1 year 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.