-
Notifications
You must be signed in to change notification settings - Fork 39k
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
Cannot list custom objects defined by CRD with non-conventional pluralization #51639
Comments
@ayj
Note: Method 1 will trigger an email to the group. You can find the group list here and label list here. |
I poked at this a bit, and I think it may be more of a CLI UI/UX issue. While the CLI reports Specifically, if we change apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: routerules.config.istio.io
spec:
group: config.istio.io
names:
kind: Noodle
plural: routerules
singular: routerule
version: v1alpha2 And apply it:
We get the expected
|
If anybody wants to work on this, here are some pointers:
The problem with the second expansion (of e.g. Maybe @deads2k or @liggitt can confirm or correct my quick observations above. |
Probably caused by #49948. |
This does not seem to be an api-machinery issue. I will remove sig-api-machinery label and add sig cli. |
it was api-machinery, fixed in #50012 |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
kubectl get route-rules.config.istio.io
fails and prints "the server doesn't have a resource type "route-rules" in group "config.istio.io" with the following CRD.What you expected to happen:
kubectl get route-rules.config.istio.io
should return the list of custom objects defined by theroute-rules.config.istio.io
CRD orNo resources found
if no objects have been created yet.How to reproduce it (as minimally and precisely as possible):
Non-working example
Anything else we need to know?:
The following CRD does work as expected.
Environment:
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: