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

CR always report no resources #42

Closed gyliu513 closed 3 years ago

gyliu513 commented 3 years ago
root@gyliu-dev21:~# kubectl get opreg -n ibm-common-services
NAME             AGE   PHASE     CREATED AT
common-service   27h   Running   2021-02-18T09:19:27Z
root@gyliu-dev21:~# kubectl tree opreg common-service -n ibm-common-services
No resources are owned by this object through ownerReferences.

How can I enable the tree can also works with a CR?

ahmetb commented 3 years ago

You need ownerReferences.