Error while querying api objects:
I got this error: "k tree deployment spr-geneos-bridge -n spr W1116 01:28:00.665016 89311 warnings.go:70] v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice Error: error while querying api objects: listing resources failed (/v1, Resource=secrets): secrets is forbidden: User "[email protected]" cannot list resource "secrets" in API group "" in the namespace "spr": requires one of ["container.secrets.list"] permission(s). " Would be possible to "skip" the object, in my case 'secrets', if you don't have the permission?
I think we already fixed this in https://github.com/ahmetb/kubectl-tree/pull/55 But you can also check kubectl lineage plugin.