{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64348","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64348/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64348/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64348/events","html_url":"https://github.com/kubernetes/kubernetes/issues/64348","id":326687388,"number":64348,"title":"\"kubectl describe cronjobs\" can't find resource (wrong api version)","user":{"login":"hal58th","id":8431974,"avatar_url":"https://avatars0.githubusercontent.com/u/8431974?v=4","gravatar_id":"","url":"https://api.github.com/users/hal58th","html_url":"https://github.com/hal58th","followers_url":"https://api.github.com/users/hal58th/followers","following_url":"https://api.github.com/users/hal58th/following{/other_user}","gists_url":"https://api.github.com/users/hal58th/gists{/gist_id}","starred_url":"https://api.github.com/users/hal58th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hal58th/subscriptions","organizations_url":"https://api.github.com/users/hal58th/orgs","repos_url":"https://api.github.com/users/hal58th/repos","events_url":"https://api.github.com/users/hal58th/events{/privacy}","received_events_url":"https://api.github.com/users/hal58th/received_events","type":"User","site_admin":false},"labels":[{"id":450823910,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/cli","name":"sig/cli","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-25T23:17:55Z","updated_at":"2018-05-26T02:04:14Z","closed_at":null,"author_association":"NONE","body":"/sig cli\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n> kind bug\r\n\r\n**What happened**:\r\nThe command `kubectl describe cronjobs` always results in \"the server could not find the requested resource\".\r\n\r\n**What you expected to happen**:\r\nThe command should successfully find the cronjobs.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nYou can create any cronjob but you can use the example in the help guide. Then run `kubectl describe cronjobs`.\r\n```\r\napiVersion: batch/v1beta1\r\nkind: CronJob\r\nmetadata:\r\n  name: hello\r\nspec:\r\n  schedule: \"*/1 * * * *\"\r\n  jobTemplate:\r\n    spec:\r\n      template:\r\n        spec:\r\n          containers:\r\n          - name: hello\r\n            image: busybox\r\n            args:\r\n            - /bin/sh\r\n            - -c\r\n            - date; echo Hello from the Kubernetes cluster\r\n          restartPolicy: OnFailure\r\n```\r\n\r\n**Anything else we need to know?**:\r\nI believe I know the exact reason it's doing this. kubectl is calling the wrong version of the batch api. While using debug --v=8, you can see it calling `GET https://{IP_ADDRESS}:8443/apis/batch/v1/namespaces/default/cronjobs/hello` but it should be calling the \"v1beta1\" api version.\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.2\", GitCommit:\"81753b10df112992bf51bbc2c2f85208aad78335\", GitTreeState:\"clean\", BuildDate:\"2018-05-12T04:12:47Z\", GoVersion:\"go1.9.6\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.0\", GitCommit:\"fc32d2f3698e36b93322a3465f63a14e9f0eaead\", GitTreeState:\"clean\", BuildDate:\"2018-03-26T16:44:10Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n- Cloud provider or hardware configuration: Using minikube with Virtualbox.\r\n\r\n- OS (e.g. from /etc/os-release): \r\nNAME=Buildroot\r\nVERSION=2017.11\r\nID=buildroot\r\nVERSION_ID=2017.11\r\nPRETTY_NAME=\"Buildroot 2017.11\"\r\n\r\n- Kernel (e.g. `uname -a`): Linux minikube 4.9.64 #1 SMP Fri Mar 30 21:27:22 UTC 2018 x86_64 GNU/Linux\r\n\r\n- Install tools: NULL\r\n- Others: NULL\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/392227796","html_url":"https://github.com/kubernetes/kubernetes/issues/64348#issuecomment-392227796","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64348","id":392227796,"user":{"login":"liggitt","id":980082,"avatar_url":"https://avatars0.githubusercontent.com/u/980082?v=4","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T02:04:14Z","updated_at":"2018-05-26T02:04:14Z","author_association":"MEMBER","body":"we can, I don't feel strongly"}}
{"actor":{"display_login":"liggitt"}}