{"action":"closed","number":62642,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/62642","id":181831524,"html_url":"https://github.com/kubernetes/kubernetes/pull/62642","diff_url":"https://github.com/kubernetes/kubernetes/pull/62642.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/62642.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/62642","number":62642,"state":"closed","locked":false,"title":"Make pod status to Running if some are Running and some are Completed","user":{"login":"ceshihao","id":7711875,"avatar_url":"https://avatars3.githubusercontent.com/u/7711875?v=4","gravatar_id":"","url":"https://api.github.com/users/ceshihao","html_url":"https://github.com/ceshihao","followers_url":"https://api.github.com/users/ceshihao/followers","following_url":"https://api.github.com/users/ceshihao/following{/other_user}","gists_url":"https://api.github.com/users/ceshihao/gists{/gist_id}","starred_url":"https://api.github.com/users/ceshihao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceshihao/subscriptions","organizations_url":"https://api.github.com/users/ceshihao/orgs","repos_url":"https://api.github.com/users/ceshihao/repos","events_url":"https://api.github.com/users/ceshihao/events{/privacy}","received_events_url":"https://api.github.com/users/ceshihao/received_events","type":"User","site_admin":false},"body":"<!--  Thanks for sending a pull request!  Here are some tips for you:\r\n1. If this is your first time, read our contributor guidelines https://git.k8s.io/community/contributors/devel/pull-requests.md#the-pr-submit-process and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide\r\n2. If you want *faster* PR reviews, read how: https://git.k8s.io/community/contributors/devel/pull-requests.md#best-practices-for-faster-reviews\r\n3. Follow the instructions for writing a release note: https://git.k8s.io/community/contributors/devel/pull-requests.md#write-release-notes-if-needed\r\n4. If the PR is unfinished, see how to mark it: https://github.com/kubernetes/community/blob/master/contributors/devel/pull-requests.md#marking-unfinished-pull-requests\r\n-->\r\n\r\n**What this PR does / why we need it**:\r\nMake pod status to Running if some are Running and some are Completed\r\n\r\n**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:\r\nFixes #62588\r\n\r\n**Special notes for your reviewer**:\r\nOnly Set Pod status to Completed when no other reason, no Running container and only Completed containers.\r\n\r\nSet status to Running if some are Running and some are Completed\r\n\r\n**Release note**:\r\n<!--  Write your release note:\r\n1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string \"action required\".\r\n2. If no release note is required, just write \"NONE\".\r\n-->\r\n```release-note\r\nSet pod status to \"Running\" if there is at least one container still reporting as \"Running\" status and others are \"Completed\".\r\n```\r\n","created_at":"2018-04-16T11:32:19Z","updated_at":"2018-04-19T22:54:17Z","closed_at":"2018-04-19T22:54:17Z","merged_at":"2018-04-19T22:54:17Z","merge_commit_sha":"9031f9a8ca42b8140c479d936010b67010136561","assignee":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars0.githubusercontent.com/u/1163175?v=4","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"assignees":[{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars0.githubusercontent.com/u/1163175?v=4","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},{"login":"dixudx","id":5449021,"avatar_url":"https://avatars3.githubusercontent.com/u/5449021?v=4","gravatar_id":"","url":"https://api.github.com/users/dixudx","html_url":"https://github.com/dixudx","followers_url":"https://api.github.com/users/dixudx/followers","following_url":"https://api.github.com/users/dixudx/following{/other_user}","gists_url":"https://api.github.com/users/dixudx/gists{/gist_id}","starred_url":"https://api.github.com/users/dixudx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dixudx/subscriptions","organizations_url":"https://api.github.com/users/dixudx/orgs","repos_url":"https://api.github.com/users/dixudx/repos","events_url":"https://api.github.com/users/dixudx/events{/privacy}","received_events_url":"https://api.github.com/users/dixudx/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mengqiy","id":2589105,"avatar_url":"https://avatars1.githubusercontent.com/u/2589105?v=4","gravatar_id":"","url":"https://api.github.com/users/mengqiy","html_url":"https://github.com/mengqiy","followers_url":"https://api.github.com/users/mengqiy/followers","following_url":"https://api.github.com/users/mengqiy/following{/other_user}","gists_url":"https://api.github.com/users/mengqiy/gists{/gist_id}","starred_url":"https://api.github.com/users/mengqiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengqiy/subscriptions","organizations_url":"https://api.github.com/users/mengqiy/orgs","repos_url":"https://api.github.com/users/mengqiy/repos","events_url":"https://api.github.com/users/mengqiy/events{/privacy}","received_events_url":"https://api.github.com/users/mengqiy/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":414883982,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/approved","name":"approved","color":"0ffa16","default":false},{"id":477397086,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":148225179,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lgtm","name":"lgtm","color":"15dd18","default":false},{"id":200149833,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note","name":"release-note","color":"c2e0c6","default":false},{"id":253450895,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/S","name":"size/S","color":"77bb00","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/62642/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/62642/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/62642/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/6b94e872c63eeea2ed4fdc510c008e4ff9713953","head":{"label":"ceshihao:kubectl_get_pod_status","ref":"kubectl_get_pod_status","sha":"6b94e872c63eeea2ed4fdc510c008e4ff9713953","user":{"login":"ceshihao","id":7711875,"avatar_url":"https://avatars3.githubusercontent.com/u/7711875?v=4","gravatar_id":"","url":"https://api.github.com/users/ceshihao","html_url":"https://github.com/ceshihao","followers_url":"https://api.github.com/users/ceshihao/followers","following_url":"https://api.github.com/users/ceshihao/following{/other_user}","gists_url":"https://api.github.com/users/ceshihao/gists{/gist_id}","starred_url":"https://api.github.com/users/ceshihao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceshihao/subscriptions","organizations_url":"https://api.github.com/users/ceshihao/orgs","repos_url":"https://api.github.com/users/ceshihao/repos","events_url":"https://api.github.com/users/ceshihao/events{/privacy}","received_events_url":"https://api.github.com/users/ceshihao/received_events","type":"User","site_admin":false},"repo":{"id":129405180,"name":"kubernetes","full_name":"ceshihao/kubernetes","owner":{"login":"ceshihao","id":7711875,"avatar_url":"https://avatars3.githubusercontent.com/u/7711875?v=4","gravatar_id":"","url":"https://api.github.com/users/ceshihao","html_url":"https://github.com/ceshihao","followers_url":"https://api.github.com/users/ceshihao/followers","following_url":"https://api.github.com/users/ceshihao/following{/other_user}","gists_url":"https://api.github.com/users/ceshihao/gists{/gist_id}","starred_url":"https://api.github.com/users/ceshihao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceshihao/subscriptions","organizations_url":"https://api.github.com/users/ceshihao/orgs","repos_url":"https://api.github.com/users/ceshihao/repos","events_url":"https://api.github.com/users/ceshihao/events{/privacy}","received_events_url":"https://api.github.com/users/ceshihao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ceshihao/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":true,"url":"https://api.github.com/repos/ceshihao/kubernetes","forks_url":"https://api.github.com/repos/ceshihao/kubernetes/forks","keys_url":"https://api.github.com/repos/ceshihao/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceshihao/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceshihao/kubernetes/teams","hooks_url":"https://api.github.com/repos/ceshihao/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/ceshihao/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/ceshihao/kubernetes/events","assignees_url":"https://api.github.com/repos/ceshihao/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/ceshihao/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/ceshihao/kubernetes/tags","blobs_url":"https://api.github.com/repos/ceshihao/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceshihao/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceshihao/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceshihao/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceshihao/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/ceshihao/kubernetes/languages","stargazers_url":"https://api.github.com/repos/ceshihao/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/ceshihao/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/ceshihao/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/ceshihao/kubernetes/subscription","commits_url":"https://api.github.com/repos/ceshihao/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceshihao/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceshihao/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceshihao/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceshihao/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/ceshihao/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceshihao/kubernetes/merges","archive_url":"https://api.github.com/repos/ceshihao/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceshihao/kubernetes/downloads","issues_url":"https://api.github.com/repos/ceshihao/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/ceshihao/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/ceshihao/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/ceshihao/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceshihao/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/ceshihao/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/ceshihao/kubernetes/deployments","created_at":"2018-04-13T13:20:57Z","updated_at":"2018-04-13T13:21:30Z","pushed_at":"2018-04-19T06:28:35Z","git_url":"git://github.com/ceshihao/kubernetes.git","ssh_url":"git@github.com:ceshihao/kubernetes.git","clone_url":"https://github.com/ceshihao/kubernetes.git","svn_url":"https://github.com/ceshihao/kubernetes","homepage":"http://kubernetes.io","size":552287,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"44ede98e9417e109dacf0e178d25e6fdec5bab64","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"kubernetes/kubernetes","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes","forks_url":"https://api.github.com/repos/kubernetes/kubernetes/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/kubernetes/deployments","created_at":"2014-06-06T22:56:04Z","updated_at":"2018-04-19T22:16:41Z","pushed_at":"2018-04-19T22:54:17Z","git_url":"git://github.com/kubernetes/kubernetes.git","ssh_url":"git@github.com:kubernetes/kubernetes.git","clone_url":"https://github.com/kubernetes/kubernetes.git","svn_url":"https://github.com/kubernetes/kubernetes","homepage":"http://kubernetes.io","size":771747,"stargazers_count":35282,"watchers_count":35282,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12485,"mirror_url":null,"archived":false,"open_issues_count":3460,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":12485,"open_issues":3460,"watchers":35282,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/62642"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/62642"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/62642"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/62642/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/62642/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/62642/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/6b94e872c63eeea2ed4fdc510c008e4ff9713953"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"k8s-merge-robot","id":13653959,"avatar_url":"https://avatars0.githubusercontent.com/u/13653959?v=4","gravatar_id":"","url":"https://api.github.com/users/k8s-merge-robot","html_url":"https://github.com/k8s-merge-robot","followers_url":"https://api.github.com/users/k8s-merge-robot/followers","following_url":"https://api.github.com/users/k8s-merge-robot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-merge-robot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-merge-robot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-merge-robot/subscriptions","organizations_url":"https://api.github.com/users/k8s-merge-robot/orgs","repos_url":"https://api.github.com/users/k8s-merge-robot/repos","events_url":"https://api.github.com/users/k8s-merge-robot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-merge-robot/received_events","type":"User","site_admin":false},"comments":21,"review_comments":2,"maintainer_can_modify":false,"commits":1,"additions":23,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"k8s-merge-robot"}}