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

Feature Request: List resources in a scope #56

Open dwertent opened 1 year ago

dwertent commented 1 year ago

It will be great if we can list all of the resources in a scope - namespace/cluster without the need of specifying each resource e.g. List all of the resources within my-namespace

kubectl tree namespace my-namespace

List all of the resources within my-cluster

kubectl tree cluster my-cluster

The specified cluster name should be similar to the context name.

FYI I don't mind contributing this feature :)

ahmetb commented 1 year ago

I am not sure if it would be a dramatic value add. All resources in those scopes is a lot of resources to consume the output by eye.

Furthermore, "get-all" plugin already offers ns/cluster scope querying.