{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/dashboard/issues/562","repository_url":"https://api.github.com/repos/kubernetes/dashboard","labels_url":"https://api.github.com/repos/kubernetes/dashboard/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/dashboard/issues/562/comments","events_url":"https://api.github.com/repos/kubernetes/dashboard/issues/562/events","html_url":"https://github.com/kubernetes/dashboard/pull/562","id":142639649,"number":562,"title":"[WIP] Add deploy plugin KPM","user":{"login":"ant31","id":1044332,"avatar_url":"https://avatars.githubusercontent.com/u/1044332?v=3","gravatar_id":"","url":"https://api.github.com/users/ant31","html_url":"https://github.com/ant31","followers_url":"https://api.github.com/users/ant31/followers","following_url":"https://api.github.com/users/ant31/following{/other_user}","gists_url":"https://api.github.com/users/ant31/gists{/gist_id}","starred_url":"https://api.github.com/users/ant31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant31/subscriptions","organizations_url":"https://api.github.com/users/ant31/orgs","repos_url":"https://api.github.com/users/ant31/repos","events_url":"https://api.github.com/users/ant31/events{/privacy}","received_events_url":"https://api.github.com/users/ant31/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/dashboard/labels/cla:%20no","name":"cla: no","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T12:48:40Z","updated_at":"2016-03-22T17:05:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/dashboard/pulls/562","html_url":"https://github.com/kubernetes/dashboard/pull/562","diff_url":"https://github.com/kubernetes/dashboard/pull/562.diff","patch_url":"https://github.com/kubernetes/dashboard/pull/562.patch"},"body":"Related to #556 \r\nNot to be merged. \r\n\r\nit's an example of how kpm could be integrated to dashboard. \r\n\r\nThere is an handler in the dashboard-backend to proxy calls to 'kpm-backend' that  performs the communication with the api-master to create/update resources.\r\n\r\nkpm-backend has only 2 availables api endpoints:\r\n\r\n - POST  /api/v1/deploy/packageName\r\n - POST  /api/v1/delete/packageName\r\n\r\nIt returns a json with the 'deployment' results:\r\n```json\r\n{\r\n  \"result\": [\r\n    {\r\n      \"kind\": \"namespace\", \r\n      \"name\": \"default\", \r\n      \"namespace\": \"default\", \r\n      \"package\": \"ant31/rocketchat\", \r\n      \"status\": \"ok\", \r\n      \"version\": \"1.6.0\"\r\n    }, \r\n    {\r\n      \"kind\": \"service\", \r\n      \"name\": \"rocketchat\", \r\n      \"namespace\": \"default\", \r\n      \"package\": \"ant31/rocketchat\", \r\n      \"status\": \"created\", \r\n      \"version\": \"1.6.0\"\r\n    }, \r\n    {\r\n      \"kind\": \"replicationcontroller\", \r\n      \"name\": \"rocketchat\", \r\n      \"namespace\": \"default\", \r\n      \"package\": \"ant31/rocketchat\", \r\n      \"status\": \"created\", \r\n      \"version\": \"1.6.0\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nThe results is then returned to the dashboard front-end for display.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/kubernetes/dashboard/562)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/dashboard/issues/comments/199909795","html_url":"https://github.com/kubernetes/dashboard/pull/562#issuecomment-199909795","issue_url":"https://api.github.com/repos/kubernetes/dashboard/issues/562","id":199909795,"user":{"login":"abodelot","id":1200828,"avatar_url":"https://avatars.githubusercontent.com/u/1200828?v=3","gravatar_id":"","url":"https://api.github.com/users/abodelot","html_url":"https://github.com/abodelot","followers_url":"https://api.github.com/users/abodelot/followers","following_url":"https://api.github.com/users/abodelot/following{/other_user}","gists_url":"https://api.github.com/users/abodelot/gists{/gist_id}","starred_url":"https://api.github.com/users/abodelot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abodelot/subscriptions","organizations_url":"https://api.github.com/users/abodelot/orgs","repos_url":"https://api.github.com/users/abodelot/repos","events_url":"https://api.github.com/users/abodelot/events{/privacy}","received_events_url":"https://api.github.com/users/abodelot/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T17:05:44Z","updated_at":"2016-03-22T17:05:44Z","body":"I signed it!"}}