{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/47244749","id":47244749,"diff_hunk":"@@ -0,0 +1,105 @@\n+/*\n+Copyright 2015 The Kubernetes Authors All rights reserved.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+package configmap\n+\n+import (\n+\t\"fmt\"\n+\n+\t\"k8s.io/kubernetes/pkg/api\"\n+\t\"k8s.io/kubernetes/pkg/api/rest\"\n+\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n+\t\"k8s.io/kubernetes/pkg/apis/extensions/validation\"\n+\t\"k8s.io/kubernetes/pkg/fields\"\n+\t\"k8s.io/kubernetes/pkg/labels\"\n+\t\"k8s.io/kubernetes/pkg/registry/generic\"\n+\t\"k8s.io/kubernetes/pkg/runtime\"\n+\tvalidationutil \"k8s.io/kubernetes/pkg/util/validation\"\n+)\n+\n+// strategy implements behavior for ConfigMap objects\n+type strategy struct {\n+\truntime.ObjectTyper\n+\tapi.NameGenerator\n+}\n+\n+// Strategy is the default logic that applies when creating and updating ConfigMap\n+// objects via the REST API.\n+var Strategy = strategy{api.Scheme, api.SimpleNameGenerator}\n+\n+// Strategy should implement rest.RESTCreateStrategy\n+var _ rest.RESTCreateStrategy = Strategy\n+\n+// Strategy should implement rest.RESTUpdateStrategy\n+var _ rest.RESTUpdateStrategy = Strategy\n+\n+func (strategy) NamespaceScoped() bool {","path":"pkg/registry/configmap/strategy.go","position":49,"original_position":49,"commit_id":"d8fc474a4f3282bbbbb0f447699623b2bf1334ff","original_commit_id":"d8fc474a4f3282bbbbb0f447699623b2bf1334ff","user":{"login":"pmorie","id":366488,"avatar_url":"https://avatars.githubusercontent.com/u/366488?v=3","gravatar_id":"","url":"https://api.github.com/users/pmorie","html_url":"https://github.com/pmorie","followers_url":"https://api.github.com/users/pmorie/followers","following_url":"https://api.github.com/users/pmorie/following{/other_user}","gists_url":"https://api.github.com/users/pmorie/gists{/gist_id}","starred_url":"https://api.github.com/users/pmorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmorie/subscriptions","organizations_url":"https://api.github.com/users/pmorie/orgs","repos_url":"https://api.github.com/users/pmorie/repos","events_url":"https://api.github.com/users/pmorie/events{/privacy}","received_events_url":"https://api.github.com/users/pmorie/received_events","type":"User","site_admin":false},"body":"Many other strategy files have less godoc than this one :)","created_at":"2015-12-10T16:03:50Z","updated_at":"2015-12-10T16:03:50Z","html_url":"https://github.com/kubernetes/kubernetes/pull/6245#discussion_r47244749","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/6245","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/47244749"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/6245#discussion_r47244749"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/6245"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/6245","id":32369033,"html_url":"https://github.com/kubernetes/kubernetes/pull/6245","diff_url":"https://github.com/kubernetes/kubernetes/pull/6245.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/6245.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/6245","number":6245,"state":"open","locked":false,"title":"Generic Config object and its REST implementation","user":{"login":"tmrts","id":5067495,"avatar_url":"https://avatars.githubusercontent.com/u/5067495?v=3","gravatar_id":"","url":"https://api.github.com/users/tmrts","html_url":"https://github.com/tmrts","followers_url":"https://api.github.com/users/tmrts/followers","following_url":"https://api.github.com/users/tmrts/following{/other_user}","gists_url":"https://api.github.com/users/tmrts/gists{/gist_id}","starred_url":"https://api.github.com/users/tmrts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmrts/subscriptions","organizations_url":"https://api.github.com/users/tmrts/orgs","repos_url":"https://api.github.com/users/tmrts/repos","events_url":"https://api.github.com/users/tmrts/events{/privacy}","received_events_url":"https://api.github.com/users/tmrts/received_events","type":"User","site_admin":false},"body":"Per #5582, generic ``Config`` object that will be stored in ``etcd`` and will be exposed through the ``API`` server instead of using flags.","created_at":"2015-03-31T21:41:47Z","updated_at":"2015-12-10T16:03:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f33a16b68f41b79755f23d3bcc4e5e05a5f7528a","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/6245/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/6245/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/6245/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/d8fc474a4f3282bbbbb0f447699623b2bf1334ff","head":{"label":"tmrts:master","ref":"master","sha":"d8fc474a4f3282bbbbb0f447699623b2bf1334ff","user":{"login":"tmrts","id":5067495,"avatar_url":"https://avatars.githubusercontent.com/u/5067495?v=3","gravatar_id":"","url":"https://api.github.com/users/tmrts","html_url":"https://github.com/tmrts","followers_url":"https://api.github.com/users/tmrts/followers","following_url":"https://api.github.com/users/tmrts/following{/other_user}","gists_url":"https://api.github.com/users/tmrts/gists{/gist_id}","starred_url":"https://api.github.com/users/tmrts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmrts/subscriptions","organizations_url":"https://api.github.com/users/tmrts/orgs","repos_url":"https://api.github.com/users/tmrts/repos","events_url":"https://api.github.com/users/tmrts/events{/privacy}","received_events_url":"https://api.github.com/users/tmrts/received_events","type":"User","site_admin":false},"repo":{"id":32183502,"name":"kubernetes","full_name":"tmrts/kubernetes","owner":{"login":"tmrts","id":5067495,"avatar_url":"https://avatars.githubusercontent.com/u/5067495?v=3","gravatar_id":"","url":"https://api.github.com/users/tmrts","html_url":"https://github.com/tmrts","followers_url":"https://api.github.com/users/tmrts/followers","following_url":"https://api.github.com/users/tmrts/following{/other_user}","gists_url":"https://api.github.com/users/tmrts/gists{/gist_id}","starred_url":"https://api.github.com/users/tmrts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmrts/subscriptions","organizations_url":"https://api.github.com/users/tmrts/orgs","repos_url":"https://api.github.com/users/tmrts/repos","events_url":"https://api.github.com/users/tmrts/events{/privacy}","received_events_url":"https://api.github.com/users/tmrts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmrts/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/tmrts/kubernetes","forks_url":"https://api.github.com/repos/tmrts/kubernetes/forks","keys_url":"https://api.github.com/repos/tmrts/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmrts/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmrts/kubernetes/teams","hooks_url":"https://api.github.com/repos/tmrts/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/tmrts/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/tmrts/kubernetes/events","assignees_url":"https://api.github.com/repos/tmrts/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/tmrts/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/tmrts/kubernetes/tags","blobs_url":"https://api.github.com/repos/tmrts/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmrts/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmrts/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmrts/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmrts/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/tmrts/kubernetes/languages","stargazers_url":"https://api.github.com/repos/tmrts/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/tmrts/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/tmrts/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/tmrts/kubernetes/subscription","commits_url":"https://api.github.com/repos/tmrts/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmrts/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmrts/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmrts/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmrts/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/tmrts/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmrts/kubernetes/merges","archive_url":"https://api.github.com/repos/tmrts/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmrts/kubernetes/downloads","issues_url":"https://api.github.com/repos/tmrts/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/tmrts/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/tmrts/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/tmrts/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmrts/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/tmrts/kubernetes/releases{/id}","created_at":"2015-03-13T22:14:55Z","updated_at":"2015-10-02T04:29:52Z","pushed_at":"2015-12-10T15:10:05Z","git_url":"git://github.com/tmrts/kubernetes.git","ssh_url":"git@github.com:tmrts/kubernetes.git","clone_url":"https://github.com/tmrts/kubernetes.git","svn_url":"https://github.com/tmrts/kubernetes","homepage":"http://kubernetes.io","size":134996,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"2ef2544faa0cf90292bcd14894c1a396322b926e","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-12-10T12:53:35Z","pushed_at":"2015-12-10T15:59:39Z","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":290926,"stargazers_count":11711,"watchers_count":11711,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3175,"mirror_url":null,"open_issues_count":2550,"forks":3175,"open_issues":2550,"watchers":11711,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/6245"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/6245"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/6245"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/6245/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/6245/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/6245/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/d8fc474a4f3282bbbbb0f447699623b2bf1334ff"}}}}