kubectl-tree icon indicating copy to clipboard operation
kubectl-tree copied to clipboard

Error while querying api objects:

Open oalexoprea opened this issue 1 month ago • 1 comments

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?

oalexoprea avatar Nov 15 '25 23:11 oalexoprea

I think we already fixed this in https://github.com/ahmetb/kubectl-tree/pull/55 But you can also check kubectl lineage plugin.

ahmetb avatar Nov 16 '25 01:11 ahmetb