{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22517","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22517/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22517/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22517/events","html_url":"https://github.com/kubernetes/kubernetes/issues/22517","id":138448991,"number":22517,"title":"kubectl edit job returns apiVersion: extensions/v1beta1","user":{"login":"soltysh","id":576341,"avatar_url":"https://avatars.githubusercontent.com/u/576341?v=3","gravatar_id":"","url":"https://api.github.com/users/soltysh","html_url":"https://github.com/soltysh","followers_url":"https://api.github.com/users/soltysh/followers","following_url":"https://api.github.com/users/soltysh/following{/other_user}","gists_url":"https://api.github.com/users/soltysh/gists{/gist_id}","starred_url":"https://api.github.com/users/soltysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltysh/subscriptions","organizations_url":"https://api.github.com/users/soltysh/orgs","repos_url":"https://api.github.com/users/soltysh/repos","events_url":"https://api.github.com/users/soltysh/events{/privacy}","received_events_url":"https://api.github.com/users/soltysh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-04T11:19:59Z","updated_at":"2016-05-19T08:38:35Z","closed_at":null,"body":"Steps to reproduces:\r\n```\r\nkubectl run pi --image=perl --restart=OnFailure -- perl -Mbignum=bpi -wle 'print bpi(2000)'\r\nkubectl edit job/pi\r\n```\r\nIn the editor you'll see `apiVersion: extensions/v1beta1` instead of `batch/v1`. It does not matter if you create a job using above command or if you create one with explicit `batch/v1.\r\n\r\n@erictune "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/220262196","html_url":"https://github.com/kubernetes/kubernetes/issues/22517#issuecomment-220262196","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22517","id":220262196,"user":{"login":"soltysh","id":576341,"avatar_url":"https://avatars.githubusercontent.com/u/576341?v=3","gravatar_id":"","url":"https://api.github.com/users/soltysh","html_url":"https://github.com/soltysh","followers_url":"https://api.github.com/users/soltysh/followers","following_url":"https://api.github.com/users/soltysh/following{/other_user}","gists_url":"https://api.github.com/users/soltysh/gists{/gist_id}","starred_url":"https://api.github.com/users/soltysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltysh/subscriptions","organizations_url":"https://api.github.com/users/soltysh/orgs","repos_url":"https://api.github.com/users/soltysh/repos","events_url":"https://api.github.com/users/soltysh/events{/privacy}","received_events_url":"https://api.github.com/users/soltysh/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T08:38:35Z","updated_at":"2016-05-19T08:38:35Z","body":"@dims the reason for that is that jobs co-exists in both `extensions` and `batch` groups. We left `extensions` for backwards compatibility. If you're able to find some time and fix this, PRs are welcome :)"}}