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.95k stars 120 forks source link

Have to disambiguate between deployment APIs is cumbersome #2

Open ahmetb opened 4 years ago

ahmetb commented 4 years ago
$ kubectl tree deploy nginx
Error: ambiguous kind "deploy". use one of these as the KIND disambiguate: [deployments.v1beta1.extensions, deployments.v1.apps]

This is because both extensions/v1beta1 and apps/v1 are returned as "preferred" API resources from the kube-apiserver. Maybe we use filter to eliminate one.

ahmetb commented 4 years ago

Pushed a temporary change that makes an exception for Deployment and Service objects.