ahmetb/kubectl-tree

Have to disambiguate between deployment APIs is cumbersome

ahmetb opened this issue · 1 comments

$ 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.

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