{"action":"created","issue":{"url":"https://api.github.com/repos/dcos/dcos-ui/issues/2901","repository_url":"https://api.github.com/repos/dcos/dcos-ui","labels_url":"https://api.github.com/repos/dcos/dcos-ui/issues/2901/labels{/name}","comments_url":"https://api.github.com/repos/dcos/dcos-ui/issues/2901/comments","events_url":"https://api.github.com/repos/dcos/dcos-ui/issues/2901/events","html_url":"https://github.com/dcos/dcos-ui/pull/2901","id":314600443,"number":2901,"title":"DCOS-22128 - fix(marathonUtil): fix parsePod function","user":{"login":"Poltergeist","id":156010,"avatar_url":"https://avatars0.githubusercontent.com/u/156010?v=4","gravatar_id":"","url":"https://api.github.com/users/Poltergeist","html_url":"https://github.com/Poltergeist","followers_url":"https://api.github.com/users/Poltergeist/followers","following_url":"https://api.github.com/users/Poltergeist/following{/other_user}","gists_url":"https://api.github.com/users/Poltergeist/gists{/gist_id}","starred_url":"https://api.github.com/users/Poltergeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Poltergeist/subscriptions","organizations_url":"https://api.github.com/users/Poltergeist/orgs","repos_url":"https://api.github.com/users/Poltergeist/repos","events_url":"https://api.github.com/users/Poltergeist/events{/privacy}","received_events_url":"https://api.github.com/users/Poltergeist/received_events","type":"User","site_admin":false},"labels":[{"id":539468738,"url":"https://api.github.com/repos/dcos/dcos-ui/labels/blocker","name":"blocker","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-04-16T10:59:38Z","updated_at":"2018-04-18T12:24:51Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/dcos/dcos-ui/pulls/2901","html_url":"https://github.com/dcos/dcos-ui/pull/2901","diff_url":"https://github.com/dcos/dcos-ui/pull/2901.diff","patch_url":"https://github.com/dcos/dcos-ui/pull/2901.patch"},"body":"This fixes the parsePod function in the case that a pod with a similar configuration as:\r\n```\r\n{\r\n  \"id\": \"/test\",\r\n  \"containers\": [\r\n    {\r\n      \"name\": \"container-1\",\r\n      \"resources\": {\r\n        \"cpus\": 0.1,\r\n        \"mem\": 128,\r\n        \"disk\": 0\r\n      },\r\n      \"image\": {\r\n        \"kind\": \"DOCKER\",\r\n        \"id\": \"alpine\"\r\n      },\r\n      \"exec\": {\r\n        \"command\": {\r\n          \"shell\": \"sleep 1000\"\r\n        }\r\n      },\r\n      \"volumeMounts\": [\r\n        {\r\n          \"name\": \"home\",\r\n          \"mountPath\": \"/var/log\"\r\n        }\r\n      ]\r\n    },\r\n    {\r\n      \"name\": \"container-2\",\r\n      \"resources\": {\r\n        \"cpus\": 0.1,\r\n        \"mem\": 128,\r\n        \"disk\": 0\r\n      },\r\n      \"image\": {\r\n        \"kind\": \"DOCKER\",\r\n        \"id\": \"alpine\"\r\n      },\r\n      \"exec\": {\r\n        \"command\": {\r\n          \"shell\": \"sleep 1500\"\r\n        }\r\n      },\r\n      \"volumeMounts\": []\r\n    }\r\n  ],\r\n  \"volumes\": [\r\n    {\r\n      \"name\": \"home\"\r\n    }\r\n  ],\r\n  \"networks\": [\r\n    {\r\n      \"mode\": \"host\"\r\n    }\r\n  ],\r\n  \"scaling\": {\r\n    \"instances\": 1,\r\n    \"kind\": \"fixed\"\r\n  },\r\n  \"scheduling\": {\r\n    \"placement\": {\r\n      \"constraints\": []\r\n    }\r\n  },\r\n  \"executorResources\": {\r\n    \"cpus\": 0.1,\r\n    \"mem\": 32,\r\n    \"disk\": 10\r\n  },\r\n  \"fetch\": []\r\n}\r\n```\r\nTo test just deploy the previously mentioned configuration.\r\n\r\nClose DCOS-22128"},"comment":{"url":"https://api.github.com/repos/dcos/dcos-ui/issues/comments/382368314","html_url":"https://github.com/dcos/dcos-ui/pull/2901#issuecomment-382368314","issue_url":"https://api.github.com/repos/dcos/dcos-ui/issues/2901","id":382368314,"user":{"login":"Poltergeist","id":156010,"avatar_url":"https://avatars0.githubusercontent.com/u/156010?v=4","gravatar_id":"","url":"https://api.github.com/users/Poltergeist","html_url":"https://github.com/Poltergeist","followers_url":"https://api.github.com/users/Poltergeist/followers","following_url":"https://api.github.com/users/Poltergeist/following{/other_user}","gists_url":"https://api.github.com/users/Poltergeist/gists{/gist_id}","starred_url":"https://api.github.com/users/Poltergeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Poltergeist/subscriptions","organizations_url":"https://api.github.com/users/Poltergeist/orgs","repos_url":"https://api.github.com/users/Poltergeist/repos","events_url":"https://api.github.com/users/Poltergeist/events{/privacy}","received_events_url":"https://api.github.com/users/Poltergeist/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T12:24:51Z","updated_at":"2018-04-18T12:24:51Z","author_association":"CONTRIBUTOR","body":"run integration tests"}}
{"actor":{"display_login":"Poltergeist"}}