{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/68477851","id":68477851,"diff_hunk":"@@ -40,6 +41,7 @@ type GetOptions struct {\n const (\n \tget_long = `Display one or many resources.\n \n+` + kubectl.Warn + `","path":"pkg/kubectl/cmd/get.go","position":12,"original_position":12,"commit_id":"8fd209a99170ee0304954a9005d71efeee288d40","original_commit_id":"8fd209a99170ee0304954a9005d71efeee288d40","user":{"login":"janetkuo","id":4876867,"avatar_url":"https://avatars.githubusercontent.com/u/4876867?v=3","gravatar_id":"","url":"https://api.github.com/users/janetkuo","html_url":"https://github.com/janetkuo","followers_url":"https://api.github.com/users/janetkuo/followers","following_url":"https://api.github.com/users/janetkuo/following{/other_user}","gists_url":"https://api.github.com/users/janetkuo/gists{/gist_id}","starred_url":"https://api.github.com/users/janetkuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janetkuo/subscriptions","organizations_url":"https://api.github.com/users/janetkuo/orgs","repos_url":"https://api.github.com/users/janetkuo/repos","events_url":"https://api.github.com/users/janetkuo/events{/privacy}","received_events_url":"https://api.github.com/users/janetkuo/received_events","type":"User","site_admin":false},"body":"actually, I don't think we need this warning in get's help doc, WDYT?","created_at":"2016-06-24T23:54:15Z","updated_at":"2016-06-24T23:54:15Z","html_url":"https://github.com/kubernetes/kubernetes/pull/26417#discussion_r68477851","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/68477851"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/26417#discussion_r68477851"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417","id":71706491,"html_url":"https://github.com/kubernetes/kubernetes/pull/26417","diff_url":"https://github.com/kubernetes/kubernetes/pull/26417.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/26417.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/26417","number":26417,"state":"open","locked":false,"title":" Added warning msg for `kubectl get pods` and clarification msg for `kubectl create/run` in case of conflict with terminated pods/jobs ","user":{"login":"vefimova","id":11852061,"avatar_url":"https://avatars.githubusercontent.com/u/11852061?v=3","gravatar_id":"","url":"https://api.github.com/users/vefimova","html_url":"https://github.com/vefimova","followers_url":"https://api.github.com/users/vefimova/followers","following_url":"https://api.github.com/users/vefimova/following{/other_user}","gists_url":"https://api.github.com/users/vefimova/gists{/gist_id}","starred_url":"https://api.github.com/users/vefimova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vefimova/subscriptions","organizations_url":"https://api.github.com/users/vefimova/orgs","repos_url":"https://api.github.com/users/vefimova/repos","events_url":"https://api.github.com/users/vefimova/events{/privacy}","received_events_url":"https://api.github.com/users/vefimova/received_events","type":"User","site_admin":false},"body":"Fixes #22986\r\n    - added printing clarification on pod or job creation AlreadyExists error in case of the failure is due    to conflicting with pod/job in terminated state\r\n    - added warning description regarding terminated pods to `get` long help message\r\n    - added printing of warning message in case of `get pods`\r\n\r\n\r\n## **Output examples:**\r\n### # kubectl get pods\r\n```\r\nNAME             READY     STATUS       RESTARTS   AGE\r\ntest.pod             1/1       Running      0          6d\r\ntest3.pod            1/1       Running      0          3d\r\n\r\nWARN: By default only active pods displayed, to display terminated\r\npods as well set -a, --show-all option. It is done intentionally to let see\r\nstatuses they finish with.\r\n```\r\n### # kubectl get pods -a\r\n```\r\nNAME                   READY     STATUS       RESTARTS   AGE\r\ntest.pod                   1/1       Running      0          6d\r\ntest2.pod             0/1       Completed    0          7d\r\ntest3.pod            1/1       Running      0          3d\r\n```\r\n\r\n### # kubectl get jobs\r\n```\r\nNAME                   READY     STATUS       RESTARTS   AGE\r\ntest.pod               1/1       Running      0          6d\r\ntest2.pod              0/1       Completed    0          7d\r\ntest3.pod              1/1       Running      0          3d\r\n\r\n```\r\n### # kubectl create -f ./pod.yaml\r\n```\r\nError from server: error when creating \"../../kubernetes/pod.yaml\": pods \"test2.pod\" already exists\r\n Existant pod is in termanited state! Please check its status and delete it!\r\n Use `kubectl get pods/test2.pod`\r\n```\r\n\r\n### # kubectl  create -f ./job.yaml\r\n```\r\nError from server: error when creating \"../../kubernetes/job.yaml\": jobs.extensions \"test.job\" already exists\r\n Existant job is in termanited state! Please check its status and delete it!\r\n Use `kubectl get jobs/test.job`\r\n```\r\n\r\n### #kubectl run load-generator --image=busybox --restart=Never\r\n```\r\nError from server: jobs.extensions \"load-generator\" already exists\r\n Existant job is in termanited state! Please check its status and delete it!\r\n Use `kubectl get jobs/load-generator`\r\n```\r\n\r\n### # kubectl get -h\r\n```\r\nDisplay one or many resources.\r\n\r\nWARN: By default only active pods displayed, to display terminated\r\npods as well set -a, --show-all option. It is done intentionally to let see\r\nstatuses they finish with.\r\n\r\nPossible resource types include (case insensitive): pods (po), services (svc), deployments,\r\nreplicasets (rs), replicationcontrollers (rc), nodes (no), events (ev), limitranges (limits),\r\npersistentvolumes (pv), persistentvolumeclaims (pvc), resourcequotas (quota), namespaces (ns),\r\nserviceaccounts (sa), ingresses (ing), horizontalpodautoscalers (hpa), daemonsets (ds), configmaps,\r\ncomponentstatuses (cs), endpoints (ep), and secrets.\r\n\r\nBy specifying the output as 'template' and providing a Go template as the value\r\nof the --template flag, you can filter the attributes of the fetched resource(s).\r\n\r\nUsage:\r\n.......\r\n\r\n```","created_at":"2016-05-27T12:39:29Z","updated_at":"2016-06-24T23:54:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06aca1b176ef3c65467fd06c5ed9a39b000ae94e","assignee":{"login":"janetkuo","id":4876867,"avatar_url":"https://avatars.githubusercontent.com/u/4876867?v=3","gravatar_id":"","url":"https://api.github.com/users/janetkuo","html_url":"https://github.com/janetkuo","followers_url":"https://api.github.com/users/janetkuo/followers","following_url":"https://api.github.com/users/janetkuo/following{/other_user}","gists_url":"https://api.github.com/users/janetkuo/gists{/gist_id}","starred_url":"https://api.github.com/users/janetkuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janetkuo/subscriptions","organizations_url":"https://api.github.com/users/janetkuo/orgs","repos_url":"https://api.github.com/users/janetkuo/repos","events_url":"https://api.github.com/users/janetkuo/events{/privacy}","received_events_url":"https://api.github.com/users/janetkuo/received_events","type":"User","site_admin":false},"assignees":[{"login":"janetkuo","id":4876867,"avatar_url":"https://avatars.githubusercontent.com/u/4876867?v=3","gravatar_id":"","url":"https://api.github.com/users/janetkuo","html_url":"https://github.com/janetkuo","followers_url":"https://api.github.com/users/janetkuo/followers","following_url":"https://api.github.com/users/janetkuo/following{/other_user}","gists_url":"https://api.github.com/users/janetkuo/gists{/gist_id}","starred_url":"https://api.github.com/users/janetkuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janetkuo/subscriptions","organizations_url":"https://api.github.com/users/janetkuo/orgs","repos_url":"https://api.github.com/users/janetkuo/repos","events_url":"https://api.github.com/users/janetkuo/events{/privacy}","received_events_url":"https://api.github.com/users/janetkuo/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/26417/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/8fd209a99170ee0304954a9005d71efeee288d40","head":{"label":"vefimova:master","ref":"master","sha":"8fd209a99170ee0304954a9005d71efeee288d40","user":{"login":"vefimova","id":11852061,"avatar_url":"https://avatars.githubusercontent.com/u/11852061?v=3","gravatar_id":"","url":"https://api.github.com/users/vefimova","html_url":"https://github.com/vefimova","followers_url":"https://api.github.com/users/vefimova/followers","following_url":"https://api.github.com/users/vefimova/following{/other_user}","gists_url":"https://api.github.com/users/vefimova/gists{/gist_id}","starred_url":"https://api.github.com/users/vefimova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vefimova/subscriptions","organizations_url":"https://api.github.com/users/vefimova/orgs","repos_url":"https://api.github.com/users/vefimova/repos","events_url":"https://api.github.com/users/vefimova/events{/privacy}","received_events_url":"https://api.github.com/users/vefimova/received_events","type":"User","site_admin":false},"repo":{"id":58924700,"name":"kubernetes","full_name":"vefimova/kubernetes","owner":{"login":"vefimova","id":11852061,"avatar_url":"https://avatars.githubusercontent.com/u/11852061?v=3","gravatar_id":"","url":"https://api.github.com/users/vefimova","html_url":"https://github.com/vefimova","followers_url":"https://api.github.com/users/vefimova/followers","following_url":"https://api.github.com/users/vefimova/following{/other_user}","gists_url":"https://api.github.com/users/vefimova/gists{/gist_id}","starred_url":"https://api.github.com/users/vefimova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vefimova/subscriptions","organizations_url":"https://api.github.com/users/vefimova/orgs","repos_url":"https://api.github.com/users/vefimova/repos","events_url":"https://api.github.com/users/vefimova/events{/privacy}","received_events_url":"https://api.github.com/users/vefimova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vefimova/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/vefimova/kubernetes","forks_url":"https://api.github.com/repos/vefimova/kubernetes/forks","keys_url":"https://api.github.com/repos/vefimova/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vefimova/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vefimova/kubernetes/teams","hooks_url":"https://api.github.com/repos/vefimova/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/vefimova/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/vefimova/kubernetes/events","assignees_url":"https://api.github.com/repos/vefimova/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/vefimova/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/vefimova/kubernetes/tags","blobs_url":"https://api.github.com/repos/vefimova/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vefimova/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vefimova/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/vefimova/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vefimova/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/vefimova/kubernetes/languages","stargazers_url":"https://api.github.com/repos/vefimova/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/vefimova/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/vefimova/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/vefimova/kubernetes/subscription","commits_url":"https://api.github.com/repos/vefimova/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/vefimova/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/vefimova/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/vefimova/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/vefimova/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/vefimova/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vefimova/kubernetes/merges","archive_url":"https://api.github.com/repos/vefimova/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vefimova/kubernetes/downloads","issues_url":"https://api.github.com/repos/vefimova/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/vefimova/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/vefimova/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/vefimova/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vefimova/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/vefimova/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/vefimova/kubernetes/deployments","created_at":"2016-05-16T10:39:24Z","updated_at":"2016-05-16T10:39:39Z","pushed_at":"2016-06-16T18:39:58Z","git_url":"git://github.com/vefimova/kubernetes.git","ssh_url":"git@github.com:vefimova/kubernetes.git","clone_url":"https://github.com/vefimova/kubernetes.git","svn_url":"https://github.com/vefimova/kubernetes","homepage":"http://kubernetes.io","size":269135,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"3ba5816e46eefba89af5f4d65654481f6f42dc9f","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","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://avatars.githubusercontent.com/u/13629408?v=3","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":"2016-06-24T22:57:32Z","pushed_at":"2016-06-24T23:46:05Z","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":483405,"stargazers_count":15092,"watchers_count":15092,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4706,"mirror_url":null,"open_issues_count":3810,"forks":4706,"open_issues":3810,"watchers":15092,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/26417"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/26417"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/26417/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/26417/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/8fd209a99170ee0304954a9005d71efeee288d40"}}}}
{"actor":{"display_login":"janetkuo"}}