{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51639","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51639/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51639/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51639/events","html_url":"https://github.com/kubernetes/kubernetes/issues/51639","id":254080212,"number":51639,"title":"Cannot list custom objects defined by CRD with non-conventional pluralization","user":{"login":"ayj","id":116378,"avatar_url":"https://avatars1.githubusercontent.com/u/116378?v=4","gravatar_id":"","url":"https://api.github.com/users/ayj","html_url":"https://github.com/ayj","followers_url":"https://api.github.com/users/ayj/followers","following_url":"https://api.github.com/users/ayj/following{/other_user}","gists_url":"https://api.github.com/users/ayj/gists{/gist_id}","starred_url":"https://api.github.com/users/ayj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayj/subscriptions","organizations_url":"https://api.github.com/users/ayj/orgs","repos_url":"https://api.github.com/users/ayj/repos","events_url":"https://api.github.com/users/ayj/events{/privacy}","received_events_url":"https://api.github.com/users/ayj/received_events","type":"User","site_admin":false},"labels":[{"id":556590057,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/third-party-resource","name":"area/third-party-resource","color":"0052cc","default":false},{"id":105146071,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":173493835,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/api-machinery","name":"sig/api-machinery","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-30T17:38:40Z","updated_at":"2017-08-30T20:53:53Z","closed_at":null,"author_association":"NONE","body":"<!-- This form is for bug reports and feature requests ONLY! \r\n\r\nIf you're looking for help check [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes) and the [troubleshooting guide](https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/).\r\n-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n/kind bug\r\n\r\n**What happened**:\r\n\r\n`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.\r\n\r\n```\r\napiVersion: apiextensions.k8s.io/v1beta1\r\nkind: CustomResourceDefinition\r\nmetadata:\r\n  name: route-rules.config.istio.io\r\nspec:\r\n  group: config.istio.io\r\n  names:\r\n    kind: RouteRule\r\n    plural: route-rules\r\n    singular: routerule\r\n  version: v1alpha2\r\n```\r\n\r\n**What you expected to happen**:\r\n\r\n`kubectl get route-rules.config.istio.io` should return the list of custom objects defined by the `route-rules.config.istio.io` CRD or `No resources found` if no objects have been created yet.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\n### Non-working example\r\n```\r\n$ cat bad.yaml \r\napiVersion: apiextensions.k8s.io/v1beta1\r\nkind: CustomResourceDefinition\r\nmetadata:\r\n  name: route-rules.config.istio.io\r\nspec:\r\n  group: config.istio.io\r\n  names:\r\n    kind: RouteRule\r\n    plural: route-rules\r\n    singular: routerule\r\n  version: v1alpha2\r\n\r\n$ kubectl apply -f bad.yaml \r\ncustomresourcedefinition \"route-rules.config.istio.io\" created\r\n\r\n$ kubectl get route-rules.config.istio.io\r\nthe server doesn't have a resource type \"route-rules\" in group \"config.istio.io\"\r\n```\r\n\r\n**Anything else we need to know?**:\r\n\r\nThe following CRD _does_ work as expected.\r\n\r\n```\r\napiVersion: apiextensions.k8s.io/v1beta1\r\nkind: CustomResourceDefinition\r\nmetadata:\r\n  name: routerules.config.istio.io\r\nspec:\r\n  group: config.istio.io\r\n  names:\r\n    kind: RouteRule\r\n    plural: routerules\r\n    singular: routerule\r\n  version: v1alpha2\r\n\r\n$ kubectl get routerules.config.istio.io\r\nNo resources found\r\n```\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\n\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"7\", GitVersion:\"v1.7.4\", GitCommit:\"793658f2d7ca7f064d2bdf606519f9fe1229c381\", GitTreeState:\"clean\", BuildDate:\"2017-08-17T08:48:23Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"7\", GitVersion:\"v1.7.3\", GitCommit:\"2c2fe6e8278a5db2d15a013987b53968c743f2a1\", GitTreeState:\"clean\", BuildDate:\"2017-08-03T06:43:48Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n- Cloud provider or hardware configuration: GKE 1.7.3 ALPHA\r\n- OS (e.g. from /etc/os-release):\r\n- Kernel (e.g. `uname -a`):\r\n- Install tools:\r\n- Others:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/326116253","html_url":"https://github.com/kubernetes/kubernetes/issues/51639#issuecomment-326116253","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51639","id":326116253,"user":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars0.githubusercontent.com/u/647318?v=4","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T20:53:53Z","updated_at":"2017-08-30T20:53:53Z","author_association":"OWNER","body":"@mbohlool @pwittrock "}}
{"actor":{"display_login":"lavalamp"}}