{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/43705618","id":43705618,"diff_hunk":"@@ -439,6 +441,27 @@ $ rm $TMP\n \n The system ensures that you don’t clobber changes made by other users or components by confirming that the `resourceVersion` doesn’t differ from the version you edited. If you want to update regardless of other changes, remove the `resourceVersion` field when you edit the resource. However, if you do this, don’t use your original configuration file as the source since additional fields most likely were set in the live state.\n \n+## Using configuration files\n+\n+A more disciplined alternative to patch and edit is `kubectl apply`. ","path":"docs/user-guide/managing-deployments.md","position":17,"original_position":17,"commit_id":"3861bb606505a7b29e1a9391c5e6dda34e1fdad7","original_commit_id":"3861bb606505a7b29e1a9391c5e6dda34e1fdad7","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":"I'll add description of edit on top of this PR. ","created_at":"2015-11-03T00:57:29Z","updated_at":"2015-11-03T00:57:29Z","html_url":"https://github.com/kubernetes/kubernetes/pull/16401#discussion_r43705618","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/43705618"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/16401#discussion_r43705618"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401","id":48954358,"html_url":"https://github.com/kubernetes/kubernetes/pull/16401","diff_url":"https://github.com/kubernetes/kubernetes/pull/16401.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/16401.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16401","number":16401,"state":"open","locked":false,"title":"Add discussion of apply to deployment options.","user":{"login":"jackgr","id":5607565,"avatar_url":"https://avatars.githubusercontent.com/u/5607565?v=3","gravatar_id":"","url":"https://api.github.com/users/jackgr","html_url":"https://github.com/jackgr","followers_url":"https://api.github.com/users/jackgr/followers","following_url":"https://api.github.com/users/jackgr/following{/other_user}","gists_url":"https://api.github.com/users/jackgr/gists{/gist_id}","starred_url":"https://api.github.com/users/jackgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackgr/subscriptions","organizations_url":"https://api.github.com/users/jackgr/orgs","repos_url":"https://api.github.com/users/jackgr/repos","events_url":"https://api.github.com/users/jackgr/events{/privacy}","received_events_url":"https://api.github.com/users/jackgr/received_events","type":"User","site_admin":false},"body":"Updates docs/user-guide/managing-deployments.md to describe the use of `kubectl apply`, as requested by #15725 and other issues.\r\n\r\ncc @bgrant0607, @janetkuo, @jlowdermilk, @davidopp ","created_at":"2015-10-28T01:21:20Z","updated_at":"2015-11-03T00:57:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7d087e346d45a864637ae50bc1e199af4107f22","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16401/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/3861bb606505a7b29e1a9391c5e6dda34e1fdad7","head":{"label":"jackgr:apply-documentation","ref":"apply-documentation","sha":"3861bb606505a7b29e1a9391c5e6dda34e1fdad7","user":{"login":"jackgr","id":5607565,"avatar_url":"https://avatars.githubusercontent.com/u/5607565?v=3","gravatar_id":"","url":"https://api.github.com/users/jackgr","html_url":"https://github.com/jackgr","followers_url":"https://api.github.com/users/jackgr/followers","following_url":"https://api.github.com/users/jackgr/following{/other_user}","gists_url":"https://api.github.com/users/jackgr/gists{/gist_id}","starred_url":"https://api.github.com/users/jackgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackgr/subscriptions","organizations_url":"https://api.github.com/users/jackgr/orgs","repos_url":"https://api.github.com/users/jackgr/repos","events_url":"https://api.github.com/users/jackgr/events{/privacy}","received_events_url":"https://api.github.com/users/jackgr/received_events","type":"User","site_admin":false},"repo":{"id":28700637,"name":"kubernetes","full_name":"jackgr/kubernetes","owner":{"login":"jackgr","id":5607565,"avatar_url":"https://avatars.githubusercontent.com/u/5607565?v=3","gravatar_id":"","url":"https://api.github.com/users/jackgr","html_url":"https://github.com/jackgr","followers_url":"https://api.github.com/users/jackgr/followers","following_url":"https://api.github.com/users/jackgr/following{/other_user}","gists_url":"https://api.github.com/users/jackgr/gists{/gist_id}","starred_url":"https://api.github.com/users/jackgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackgr/subscriptions","organizations_url":"https://api.github.com/users/jackgr/orgs","repos_url":"https://api.github.com/users/jackgr/repos","events_url":"https://api.github.com/users/jackgr/events{/privacy}","received_events_url":"https://api.github.com/users/jackgr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackgr/kubernetes","description":"Container Cluster Manager","fork":true,"url":"https://api.github.com/repos/jackgr/kubernetes","forks_url":"https://api.github.com/repos/jackgr/kubernetes/forks","keys_url":"https://api.github.com/repos/jackgr/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackgr/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackgr/kubernetes/teams","hooks_url":"https://api.github.com/repos/jackgr/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/jackgr/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/jackgr/kubernetes/events","assignees_url":"https://api.github.com/repos/jackgr/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/jackgr/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/jackgr/kubernetes/tags","blobs_url":"https://api.github.com/repos/jackgr/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackgr/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackgr/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackgr/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackgr/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/jackgr/kubernetes/languages","stargazers_url":"https://api.github.com/repos/jackgr/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/jackgr/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/jackgr/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/jackgr/kubernetes/subscription","commits_url":"https://api.github.com/repos/jackgr/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackgr/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackgr/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackgr/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/jackgr/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/jackgr/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackgr/kubernetes/merges","archive_url":"https://api.github.com/repos/jackgr/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackgr/kubernetes/downloads","issues_url":"https://api.github.com/repos/jackgr/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/jackgr/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/jackgr/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/jackgr/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackgr/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/jackgr/kubernetes/releases{/id}","created_at":"2015-01-02T01:47:28Z","updated_at":"2015-09-14T04:42:45Z","pushed_at":"2015-10-28T01:19:53Z","git_url":"git://github.com/jackgr/kubernetes.git","ssh_url":"git@github.com:jackgr/kubernetes.git","clone_url":"https://github.com/jackgr/kubernetes.git","svn_url":"https://github.com/jackgr/kubernetes","homepage":null,"size":129970,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"a1fd0536cd6d169c8cf52a22c30a1b4527b0109f","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":"Container Cluster Manager from Google","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}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-11-02T22:41:36Z","pushed_at":"2015-11-03T00:47:44Z","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":524627,"stargazers_count":11011,"watchers_count":11011,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2841,"mirror_url":null,"open_issues_count":2142,"forks":2841,"open_issues":2142,"watchers":11011,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/16401"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/16401"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/16401/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16401/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/3861bb606505a7b29e1a9391c5e6dda34e1fdad7"}}}}