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

Feature Request: List resources in a scope #56

Open dwertent opened 2 years ago

dwertent commented 2 years 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 2 years 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.

pasteley commented 3 months ago

That may be useful to list all deployments in namespace or to list all resources within specific namespace Also I'd prefer if syntax will be consistent with default kubectl arguments like -n/--namespace as argument and all as resource name