{"action":"created","comment":{"url":"https://api.github.com/repos/rancher/rancher/pulls/comments/212055304","pull_request_review_id":148606791,"id":212055304,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjA1NTMwNA==","diff_hunk":"@@ -11,3 +24,58 @@ func Formatter(apiContext *types.APIContext, resource *types.RawResource) {\n \t\tresource.Values[\"customized\"] = true\n \t}\n }\n+\n+type Handler struct{}\n+\n+func (h *Handler) UpdateHandler(apiContext *types.APIContext, next types.RequestHandler) error {\n+\tif apiContext.ID != \"cluster-defaults\" {\n+\t\treturn handler.UpdateHandler(apiContext, next)\n+\t}\n+\n+\tdata, err := handler.ParseAndValidateBody(apiContext, false)\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tspec := v3.ClusterSpec{}\n+\terr = json.Unmarshal([]byte(convert.ToString(data[\"value\"])), &spec)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"unmarshal error %v\", err)\n+\t}\n+\n+\tdataMap := map[string]interface{}{}\n+\terr = json.Unmarshal([]byte(convert.ToString(data[\"value\"])), &dataMap)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"unmarshal error %v\", err)\n+\t}\n+\n+\tclusterSchema := apiContext.Schemas.Schema(&managementschema.Version, client.ClusterType)\n+\tmodify(clusterSchema, dataMap, apiContext.Schemas)\n+\n+\tstore := apiContext.Schema.Store","path":"pkg/api/customization/setting/setting.go","position":53,"original_position":53,"commit_id":"e27f8d7d06f177d42c3ad134bc03522bc29a6446","original_commit_id":"e27f8d7d06f177d42c3ad134bc03522bc29a6446","user":{"login":"alena1108","id":1562176,"node_id":"MDQ6VXNlcjE1NjIxNzY=","avatar_url":"https://avatars0.githubusercontent.com/u/1562176?v=4","gravatar_id":"","url":"https://api.github.com/users/alena1108","html_url":"https://github.com/alena1108","followers_url":"https://api.github.com/users/alena1108/followers","following_url":"https://api.github.com/users/alena1108/following{/other_user}","gists_url":"https://api.github.com/users/alena1108/gists{/gist_id}","starred_url":"https://api.github.com/users/alena1108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alena1108/subscriptions","organizations_url":"https://api.github.com/users/alena1108/orgs","repos_url":"https://api.github.com/users/alena1108/repos","events_url":"https://api.github.com/users/alena1108/events{/privacy}","received_events_url":"https://api.github.com/users/alena1108/received_events","type":"User","site_admin":false},"body":"should we make this check in the beginning? ","created_at":"2018-08-22T18:14:36Z","updated_at":"2018-08-22T18:14:36Z","html_url":"https://github.com/rancher/rancher/pull/15165#discussion_r212055304","pull_request_url":"https://api.github.com/repos/rancher/rancher/pulls/15165","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/rancher/rancher/pulls/comments/212055304"},"html":{"href":"https://github.com/rancher/rancher/pull/15165#discussion_r212055304"},"pull_request":{"href":"https://api.github.com/repos/rancher/rancher/pulls/15165"}}},"pull_request":{"url":"https://api.github.com/repos/rancher/rancher/pulls/15165","id":209981489,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5OTgxNDg5","html_url":"https://github.com/rancher/rancher/pull/15165","diff_url":"https://github.com/rancher/rancher/pull/15165.diff","patch_url":"https://github.com/rancher/rancher/pull/15165.patch","issue_url":"https://api.github.com/repos/rancher/rancher/issues/15165","number":15165,"state":"open","locked":false,"title":"add setting cluster-defaults","user":{"login":"kinarashah","id":16870565,"node_id":"MDQ6VXNlcjE2ODcwNTY1","avatar_url":"https://avatars3.githubusercontent.com/u/16870565?v=4","gravatar_id":"","url":"https://api.github.com/users/kinarashah","html_url":"https://github.com/kinarashah","followers_url":"https://api.github.com/users/kinarashah/followers","following_url":"https://api.github.com/users/kinarashah/following{/other_user}","gists_url":"https://api.github.com/users/kinarashah/gists{/gist_id}","starred_url":"https://api.github.com/users/kinarashah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinarashah/subscriptions","organizations_url":"https://api.github.com/users/kinarashah/orgs","repos_url":"https://api.github.com/users/kinarashah/repos","events_url":"https://api.github.com/users/kinarashah/events{/privacy}","received_events_url":"https://api.github.com/users/kinarashah/received_events","type":"User","site_admin":false},"body":"https://github.com/rancher/rancher/issues/14948","created_at":"2018-08-21T23:17:25Z","updated_at":"2018-08-22T18:14:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c34633b0c319f08d5a1b0310c5edca471489edd4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rancher/rancher/pulls/15165/commits","review_comments_url":"https://api.github.com/repos/rancher/rancher/pulls/15165/comments","review_comment_url":"https://api.github.com/repos/rancher/rancher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/15165/comments","statuses_url":"https://api.github.com/repos/rancher/rancher/statuses/e27f8d7d06f177d42c3ad134bc03522bc29a6446","head":{"label":"kinarashah:thues","ref":"thues","sha":"e27f8d7d06f177d42c3ad134bc03522bc29a6446","user":{"login":"kinarashah","id":16870565,"node_id":"MDQ6VXNlcjE2ODcwNTY1","avatar_url":"https://avatars3.githubusercontent.com/u/16870565?v=4","gravatar_id":"","url":"https://api.github.com/users/kinarashah","html_url":"https://github.com/kinarashah","followers_url":"https://api.github.com/users/kinarashah/followers","following_url":"https://api.github.com/users/kinarashah/following{/other_user}","gists_url":"https://api.github.com/users/kinarashah/gists{/gist_id}","starred_url":"https://api.github.com/users/kinarashah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinarashah/subscriptions","organizations_url":"https://api.github.com/users/kinarashah/orgs","repos_url":"https://api.github.com/users/kinarashah/repos","events_url":"https://api.github.com/users/kinarashah/events{/privacy}","received_events_url":"https://api.github.com/users/kinarashah/received_events","type":"User","site_admin":false},"repo":{"id":123647580,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM2NDc1ODA=","name":"rancher","full_name":"kinarashah/rancher","owner":{"login":"kinarashah","id":16870565,"node_id":"MDQ6VXNlcjE2ODcwNTY1","avatar_url":"https://avatars3.githubusercontent.com/u/16870565?v=4","gravatar_id":"","url":"https://api.github.com/users/kinarashah","html_url":"https://github.com/kinarashah","followers_url":"https://api.github.com/users/kinarashah/followers","following_url":"https://api.github.com/users/kinarashah/following{/other_user}","gists_url":"https://api.github.com/users/kinarashah/gists{/gist_id}","starred_url":"https://api.github.com/users/kinarashah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinarashah/subscriptions","organizations_url":"https://api.github.com/users/kinarashah/orgs","repos_url":"https://api.github.com/users/kinarashah/repos","events_url":"https://api.github.com/users/kinarashah/events{/privacy}","received_events_url":"https://api.github.com/users/kinarashah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kinarashah/rancher","description":"Complete container management platform","fork":true,"url":"https://api.github.com/repos/kinarashah/rancher","forks_url":"https://api.github.com/repos/kinarashah/rancher/forks","keys_url":"https://api.github.com/repos/kinarashah/rancher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinarashah/rancher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinarashah/rancher/teams","hooks_url":"https://api.github.com/repos/kinarashah/rancher/hooks","issue_events_url":"https://api.github.com/repos/kinarashah/rancher/issues/events{/number}","events_url":"https://api.github.com/repos/kinarashah/rancher/events","assignees_url":"https://api.github.com/repos/kinarashah/rancher/assignees{/user}","branches_url":"https://api.github.com/repos/kinarashah/rancher/branches{/branch}","tags_url":"https://api.github.com/repos/kinarashah/rancher/tags","blobs_url":"https://api.github.com/repos/kinarashah/rancher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinarashah/rancher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinarashah/rancher/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinarashah/rancher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinarashah/rancher/statuses/{sha}","languages_url":"https://api.github.com/repos/kinarashah/rancher/languages","stargazers_url":"https://api.github.com/repos/kinarashah/rancher/stargazers","contributors_url":"https://api.github.com/repos/kinarashah/rancher/contributors","subscribers_url":"https://api.github.com/repos/kinarashah/rancher/subscribers","subscription_url":"https://api.github.com/repos/kinarashah/rancher/subscription","commits_url":"https://api.github.com/repos/kinarashah/rancher/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinarashah/rancher/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinarashah/rancher/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinarashah/rancher/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinarashah/rancher/contents/{+path}","compare_url":"https://api.github.com/repos/kinarashah/rancher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinarashah/rancher/merges","archive_url":"https://api.github.com/repos/kinarashah/rancher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinarashah/rancher/downloads","issues_url":"https://api.github.com/repos/kinarashah/rancher/issues{/number}","pulls_url":"https://api.github.com/repos/kinarashah/rancher/pulls{/number}","milestones_url":"https://api.github.com/repos/kinarashah/rancher/milestones{/number}","notifications_url":"https://api.github.com/repos/kinarashah/rancher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinarashah/rancher/labels{/name}","releases_url":"https://api.github.com/repos/kinarashah/rancher/releases{/id}","deployments_url":"https://api.github.com/repos/kinarashah/rancher/deployments","created_at":"2018-03-03T01:13:01Z","updated_at":"2018-03-03T01:13:05Z","pushed_at":"2018-08-21T23:47:59Z","git_url":"git://github.com/kinarashah/rancher.git","ssh_url":"git@github.com:kinarashah/rancher.git","clone_url":"https://github.com/kinarashah/rancher.git","svn_url":"https://github.com/kinarashah/rancher","homepage":"http://rancher.com","size":38712,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rancher:master","ref":"master","sha":"8ce5a94da674b3270a4046fd1274f0de2b51811e","user":{"login":"rancher","id":9343010,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzNDMwMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/9343010?v=4","gravatar_id":"","url":"https://api.github.com/users/rancher","html_url":"https://github.com/rancher","followers_url":"https://api.github.com/users/rancher/followers","following_url":"https://api.github.com/users/rancher/following{/other_user}","gists_url":"https://api.github.com/users/rancher/gists{/gist_id}","starred_url":"https://api.github.com/users/rancher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancher/subscriptions","organizations_url":"https://api.github.com/users/rancher/orgs","repos_url":"https://api.github.com/users/rancher/repos","events_url":"https://api.github.com/users/rancher/events{/privacy}","received_events_url":"https://api.github.com/users/rancher/received_events","type":"Organization","site_admin":false},"repo":{"id":26337322,"node_id":"MDEwOlJlcG9zaXRvcnkyNjMzNzMyMg==","name":"rancher","full_name":"rancher/rancher","owner":{"login":"rancher","id":9343010,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzNDMwMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/9343010?v=4","gravatar_id":"","url":"https://api.github.com/users/rancher","html_url":"https://github.com/rancher","followers_url":"https://api.github.com/users/rancher/followers","following_url":"https://api.github.com/users/rancher/following{/other_user}","gists_url":"https://api.github.com/users/rancher/gists{/gist_id}","starred_url":"https://api.github.com/users/rancher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancher/subscriptions","organizations_url":"https://api.github.com/users/rancher/orgs","repos_url":"https://api.github.com/users/rancher/repos","events_url":"https://api.github.com/users/rancher/events{/privacy}","received_events_url":"https://api.github.com/users/rancher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rancher/rancher","description":"Complete container management platform","fork":false,"url":"https://api.github.com/repos/rancher/rancher","forks_url":"https://api.github.com/repos/rancher/rancher/forks","keys_url":"https://api.github.com/repos/rancher/rancher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rancher/rancher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rancher/rancher/teams","hooks_url":"https://api.github.com/repos/rancher/rancher/hooks","issue_events_url":"https://api.github.com/repos/rancher/rancher/issues/events{/number}","events_url":"https://api.github.com/repos/rancher/rancher/events","assignees_url":"https://api.github.com/repos/rancher/rancher/assignees{/user}","branches_url":"https://api.github.com/repos/rancher/rancher/branches{/branch}","tags_url":"https://api.github.com/repos/rancher/rancher/tags","blobs_url":"https://api.github.com/repos/rancher/rancher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rancher/rancher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rancher/rancher/git/refs{/sha}","trees_url":"https://api.github.com/repos/rancher/rancher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rancher/rancher/statuses/{sha}","languages_url":"https://api.github.com/repos/rancher/rancher/languages","stargazers_url":"https://api.github.com/repos/rancher/rancher/stargazers","contributors_url":"https://api.github.com/repos/rancher/rancher/contributors","subscribers_url":"https://api.github.com/repos/rancher/rancher/subscribers","subscription_url":"https://api.github.com/repos/rancher/rancher/subscription","commits_url":"https://api.github.com/repos/rancher/rancher/commits{/sha}","git_commits_url":"https://api.github.com/repos/rancher/rancher/git/commits{/sha}","comments_url":"https://api.github.com/repos/rancher/rancher/comments{/number}","issue_comment_url":"https://api.github.com/repos/rancher/rancher/issues/comments{/number}","contents_url":"https://api.github.com/repos/rancher/rancher/contents/{+path}","compare_url":"https://api.github.com/repos/rancher/rancher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rancher/rancher/merges","archive_url":"https://api.github.com/repos/rancher/rancher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rancher/rancher/downloads","issues_url":"https://api.github.com/repos/rancher/rancher/issues{/number}","pulls_url":"https://api.github.com/repos/rancher/rancher/pulls{/number}","milestones_url":"https://api.github.com/repos/rancher/rancher/milestones{/number}","notifications_url":"https://api.github.com/repos/rancher/rancher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rancher/rancher/labels{/name}","releases_url":"https://api.github.com/repos/rancher/rancher/releases{/id}","deployments_url":"https://api.github.com/repos/rancher/rancher/deployments","created_at":"2014-11-07T20:49:31Z","updated_at":"2018-08-22T18:03:41Z","pushed_at":"2018-08-22T18:03:33Z","git_url":"git://github.com/rancher/rancher.git","ssh_url":"git@github.com:rancher/rancher.git","clone_url":"https://github.com/rancher/rancher.git","svn_url":"https://github.com/rancher/rancher","homepage":"http://rancher.com","size":38696,"stargazers_count":9347,"watchers_count":9347,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":937,"mirror_url":null,"archived":false,"open_issues_count":1949,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":937,"open_issues":1949,"watchers":9347,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rancher/rancher/pulls/15165"},"html":{"href":"https://github.com/rancher/rancher/pull/15165"},"issue":{"href":"https://api.github.com/repos/rancher/rancher/issues/15165"},"comments":{"href":"https://api.github.com/repos/rancher/rancher/issues/15165/comments"},"review_comments":{"href":"https://api.github.com/repos/rancher/rancher/pulls/15165/comments"},"review_comment":{"href":"https://api.github.com/repos/rancher/rancher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rancher/rancher/pulls/15165/commits"},"statuses":{"href":"https://api.github.com/repos/rancher/rancher/statuses/e27f8d7d06f177d42c3ad134bc03522bc29a6446"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alena1108"}}