Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find the cluster-scoped resource #26

Closed
ryysud opened this issue Jan 22, 2020 · 1 comment · Fixed by #27
Closed

Could not find the cluster-scoped resource #26

ryysud opened this issue Jan 22, 2020 · 1 comment · Fixed by #27

Comments

@ryysud
Copy link
Contributor

ryysud commented Jan 22, 2020

We are developing a Custom Controller and creating resources with the cluster-scoped CR set to OwnerReference, but kubectl tree doesn't work as bellow:

$ kubectl api-resources
NAME                              SHORTNAMES   APIGROUP                       NAMESPACED   KIND
samples                                        sample.example.org             false        Sample

$ kubectl tree samples sample -A
Error: failed to get samples/sample: the server could not find the requested resource
@ahmetb
Copy link
Owner

ahmetb commented Jan 22, 2020

@feloy i think this is happening because of #22.

CRD here is not namespaced and user didn't specify -all-namespaces.

Maybe if KIND is not namespaced, we should remove namespace filter. Wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants