{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18835","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18835/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18835/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18835/events","html_url":"https://github.com/kubernetes/kubernetes/pull/18835","id":122778379,"number":18835,"title":"Add support for 3rd party objects to kubectl","user":{"login":"brendandburns","id":5751682,"avatar_url":"https://avatars.githubusercontent.com/u/5751682?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandburns","html_url":"https://github.com/brendandburns","followers_url":"https://api.github.com/users/brendandburns/followers","following_url":"https://api.github.com/users/brendandburns/following{/other_user}","gists_url":"https://api.github.com/users/brendandburns/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandburns/subscriptions","organizations_url":"https://api.github.com/users/brendandburns/orgs","repos_url":"https://api.github.com/users/brendandburns/repos","events_url":"https://api.github.com/users/brendandburns/events{/privacy}","received_events_url":"https://api.github.com/users/brendandburns/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/api-change","name":"kind/api-change","color":"c7def8"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-rebase","name":"needs-rebase","color":"BDBDBD"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/L","name":"size/L","color":"ee9900"}],"state":"open","locked":false,"assignee":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"milestone":null,"comments":59,"created_at":"2015-12-17T17:04:17Z","updated_at":"2016-02-12T03:14:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/18835","html_url":"https://github.com/kubernetes/kubernetes/pull/18835","diff_url":"https://github.com/kubernetes/kubernetes/pull/18835.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/18835.patch"},"body":"@deads2k @jlowdermilk\r\n\r\nInstructions for playing around with this:\r\n\r\nRun an apiserver with third party resources turned on (`--runtime-config=extensions/v1beta1=true,extensions/v1beta1/thirdpartyresources=true`)\r\n\r\nThen you should be able to:\r\n\r\n```\r\nkubectl create -f rsrc.json\r\n```\r\n\r\n```json\r\n{\r\n  \"metadata\": {\r\n    \"name\": \"foo.company.com\"\r\n  },\r\n  \"apiVersion\": \"extensions/v1beta1\",\r\n  \"kind\": \"ThirdPartyResource\",\r\n  \"versions\": [\r\n    {\r\n      \"apiGroup\": \"group\",\r\n      \"name\": \"v1\"\r\n    },\r\n    {\r\n      \"apiGroup\": \"group\",\r\n      \"name\": \"v2\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nOnce that is done, you should be able to:\r\n\r\n```\r\ncurl http://<server>/apis/company.com/v1/foos\r\n```\r\n\r\n```\r\ncurl -X POST -d @${HOME}/foo.json http://localhost:8080/apis/company.com/v1/namespaces/default/foos\r\n```\r\n\r\n```json\r\n{\r\n  \"kind\": \"Foo\",\r\n  \"apiVersion\": \"company.com/v1\",\r\n  \"metadata\": {\r\n    \"name\": \"baz\"\r\n  },\r\n  \"someField\": \"hello world\",\r\n  \"otherField\": 1\r\n}\r\n```\r\n\r\nAfter this PR, you can do:\r\n\r\n```\r\nkubectl create -f foo.json\r\n```\r\n\r\n```\r\nkubectl get foos\r\n```\r\n\r\netc."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/183160245","html_url":"https://github.com/kubernetes/kubernetes/pull/18835#issuecomment-183160245","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18835","id":183160245,"user":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T03:14:26Z","updated_at":"2016-02-12T03:14:26Z","body":"@brendandburns @lavalamp @deads2k \r\n\r\nIs ThirdPartyResource enabled by default in 1.2?\r\n\r\nIs this PR still active? \r\n\r\nOr has it been broken into multiple PRs?\r\n\r\nHave we decided to keep the APIGroup field? If so, why?"}}