ahmetb/kubectl-tree

CR always report no resources

Closed this issue · 1 comments

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?

You need ownerReferences.