{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/perf-tests/pulls/comments/200143640","pull_request_review_id":134399058,"id":200143640,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDE0MzY0MA==","diff_hunk":"@@ -0,0 +1,108 @@\n+/*\n+Copyright 2018 The Kubernetes Authors.\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 framework\n+\n+import (\n+\t\"fmt\"\n+\n+\t\"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured\"\n+\t\"k8s.io/apimachinery/pkg/runtime/schema\"\n+\t\"k8s.io/client-go/dynamic\"\n+\tclientset \"k8s.io/client-go/kubernetes\"\n+\t\"k8s.io/perf-tests/clusterloader2/api\"\n+\t\"k8s.io/perf-tests/clusterloader2/framework/util\"\n+)\n+\n+const (\n+\tautomanagedNamespaceName = \"Namespace\"\n+)\n+\n+func convertObjectTypeToGVK(objectType *api.ObjectType) schema.GroupVersionKind {\n+\treturn schema.GroupVersionKind{\n+\t\tGroup:   objectType.APIGroup,\n+\t\tVersion: objectType.APIVersion,\n+\t\tKind:    objectType.Kind,\n+\t}\n+}\n+\n+// Framework allows to execute cluster related actions","path":"clusterloader2/framework/framework.go","position":42,"original_position":42,"commit_id":"fe29e11b2077347d0c86234cf7409652891ba6cb","original_commit_id":"fe29e11b2077347d0c86234cf7409652891ba6cb","user":{"login":"wojtek-t","id":10743879,"node_id":"MDQ6VXNlcjEwNzQzODc5","avatar_url":"https://avatars3.githubusercontent.com/u/10743879?v=4","gravatar_id":"","url":"https://api.github.com/users/wojtek-t","html_url":"https://github.com/wojtek-t","followers_url":"https://api.github.com/users/wojtek-t/followers","following_url":"https://api.github.com/users/wojtek-t/following{/other_user}","gists_url":"https://api.github.com/users/wojtek-t/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtek-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtek-t/subscriptions","organizations_url":"https://api.github.com/users/wojtek-t/orgs","repos_url":"https://api.github.com/users/wojtek-t/repos","events_url":"https://api.github.com/users/wojtek-t/events{/privacy}","received_events_url":"https://api.github.com/users/wojtek-t/received_events","type":"User","site_admin":false},"body":"// Framework allows for interacting with Kubernetes cluster via\r\n// official Kubernetes client.\r\n\r\nor sth like that\r\n- you don't perform any actions - you just send requests changing the desired state\r\n- [also namespace is also an objects, it's not special concept]","created_at":"2018-07-04T14:27:01Z","updated_at":"2018-07-04T14:32:58Z","html_url":"https://github.com/kubernetes/perf-tests/pull/148#discussion_r200143640","pull_request_url":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/perf-tests/pulls/comments/200143640"},"html":{"href":"https://github.com/kubernetes/perf-tests/pull/148#discussion_r200143640"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148","id":198886952,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4ODg2OTUy","html_url":"https://github.com/kubernetes/perf-tests/pull/148","diff_url":"https://github.com/kubernetes/perf-tests/pull/148.diff","patch_url":"https://github.com/kubernetes/perf-tests/pull/148.patch","issue_url":"https://api.github.com/repos/kubernetes/perf-tests/issues/148","number":148,"state":"open","locked":false,"title":"ClusterLoader - Adding framework","user":{"login":"krzysied","id":25119199,"node_id":"MDQ6VXNlcjI1MTE5MTk5","avatar_url":"https://avatars2.githubusercontent.com/u/25119199?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysied","html_url":"https://github.com/krzysied","followers_url":"https://api.github.com/users/krzysied/followers","following_url":"https://api.github.com/users/krzysied/following{/other_user}","gists_url":"https://api.github.com/users/krzysied/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysied/subscriptions","organizations_url":"https://api.github.com/users/krzysied/orgs","repos_url":"https://api.github.com/users/krzysied/repos","events_url":"https://api.github.com/users/krzysied/events{/privacy}","received_events_url":"https://api.github.com/users/krzysied/received_events","type":"User","site_admin":false},"body":"Adding cluster managing framework.","created_at":"2018-07-03T08:31:28Z","updated_at":"2018-07-04T14:32:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ff02d11bb00ed28e4211eab430ff45783201b05","assignee":{"login":"wojtek-t","id":10743879,"node_id":"MDQ6VXNlcjEwNzQzODc5","avatar_url":"https://avatars3.githubusercontent.com/u/10743879?v=4","gravatar_id":"","url":"https://api.github.com/users/wojtek-t","html_url":"https://github.com/wojtek-t","followers_url":"https://api.github.com/users/wojtek-t/followers","following_url":"https://api.github.com/users/wojtek-t/following{/other_user}","gists_url":"https://api.github.com/users/wojtek-t/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtek-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtek-t/subscriptions","organizations_url":"https://api.github.com/users/wojtek-t/orgs","repos_url":"https://api.github.com/users/wojtek-t/repos","events_url":"https://api.github.com/users/wojtek-t/events{/privacy}","received_events_url":"https://api.github.com/users/wojtek-t/received_events","type":"User","site_admin":false},"assignees":[{"login":"wojtek-t","id":10743879,"node_id":"MDQ6VXNlcjEwNzQzODc5","avatar_url":"https://avatars3.githubusercontent.com/u/10743879?v=4","gravatar_id":"","url":"https://api.github.com/users/wojtek-t","html_url":"https://github.com/wojtek-t","followers_url":"https://api.github.com/users/wojtek-t/followers","following_url":"https://api.github.com/users/wojtek-t/following{/other_user}","gists_url":"https://api.github.com/users/wojtek-t/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtek-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtek-t/subscriptions","organizations_url":"https://api.github.com/users/wojtek-t/orgs","repos_url":"https://api.github.com/users/wojtek-t/repos","events_url":"https://api.github.com/users/wojtek-t/events{/privacy}","received_events_url":"https://api.github.com/users/wojtek-t/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"shyamjvs","id":4333971,"node_id":"MDQ6VXNlcjQzMzM5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/4333971?v=4","gravatar_id":"","url":"https://api.github.com/users/shyamjvs","html_url":"https://github.com/shyamjvs","followers_url":"https://api.github.com/users/shyamjvs/followers","following_url":"https://api.github.com/users/shyamjvs/following{/other_user}","gists_url":"https://api.github.com/users/shyamjvs/gists{/gist_id}","starred_url":"https://api.github.com/users/shyamjvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyamjvs/subscriptions","organizations_url":"https://api.github.com/users/shyamjvs/orgs","repos_url":"https://api.github.com/users/shyamjvs/repos","events_url":"https://api.github.com/users/shyamjvs/events{/privacy}","received_events_url":"https://api.github.com/users/shyamjvs/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":492296491,"node_id":"MDU6TGFiZWw0OTIyOTY0OTE=","url":"https://api.github.com/repos/kubernetes/perf-tests/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":764010528,"node_id":"MDU6TGFiZWw3NjQwMTA1Mjg=","url":"https://api.github.com/repos/kubernetes/perf-tests/labels/size/L","name":"size/L","color":"ee9900","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148/commits","review_comments_url":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148/comments","review_comment_url":"https://api.github.com/repos/kubernetes/perf-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/perf-tests/issues/148/comments","statuses_url":"https://api.github.com/repos/kubernetes/perf-tests/statuses/fe29e11b2077347d0c86234cf7409652891ba6cb","head":{"label":"krzysied:cluster_loader_framework","ref":"cluster_loader_framework","sha":"fe29e11b2077347d0c86234cf7409652891ba6cb","user":{"login":"krzysied","id":25119199,"node_id":"MDQ6VXNlcjI1MTE5MTk5","avatar_url":"https://avatars2.githubusercontent.com/u/25119199?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysied","html_url":"https://github.com/krzysied","followers_url":"https://api.github.com/users/krzysied/followers","following_url":"https://api.github.com/users/krzysied/following{/other_user}","gists_url":"https://api.github.com/users/krzysied/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysied/subscriptions","organizations_url":"https://api.github.com/users/krzysied/orgs","repos_url":"https://api.github.com/users/krzysied/repos","events_url":"https://api.github.com/users/krzysied/events{/privacy}","received_events_url":"https://api.github.com/users/krzysied/received_events","type":"User","site_admin":false},"repo":{"id":128908558,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg5MDg1NTg=","name":"perf-tests","full_name":"krzysied/perf-tests","owner":{"login":"krzysied","id":25119199,"node_id":"MDQ6VXNlcjI1MTE5MTk5","avatar_url":"https://avatars2.githubusercontent.com/u/25119199?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysied","html_url":"https://github.com/krzysied","followers_url":"https://api.github.com/users/krzysied/followers","following_url":"https://api.github.com/users/krzysied/following{/other_user}","gists_url":"https://api.github.com/users/krzysied/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysied/subscriptions","organizations_url":"https://api.github.com/users/krzysied/orgs","repos_url":"https://api.github.com/users/krzysied/repos","events_url":"https://api.github.com/users/krzysied/events{/privacy}","received_events_url":"https://api.github.com/users/krzysied/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzysied/perf-tests","description":"Performance tests and benchmarks","fork":true,"url":"https://api.github.com/repos/krzysied/perf-tests","forks_url":"https://api.github.com/repos/krzysied/perf-tests/forks","keys_url":"https://api.github.com/repos/krzysied/perf-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzysied/perf-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzysied/perf-tests/teams","hooks_url":"https://api.github.com/repos/krzysied/perf-tests/hooks","issue_events_url":"https://api.github.com/repos/krzysied/perf-tests/issues/events{/number}","events_url":"https://api.github.com/repos/krzysied/perf-tests/events","assignees_url":"https://api.github.com/repos/krzysied/perf-tests/assignees{/user}","branches_url":"https://api.github.com/repos/krzysied/perf-tests/branches{/branch}","tags_url":"https://api.github.com/repos/krzysied/perf-tests/tags","blobs_url":"https://api.github.com/repos/krzysied/perf-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzysied/perf-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzysied/perf-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzysied/perf-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzysied/perf-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/krzysied/perf-tests/languages","stargazers_url":"https://api.github.com/repos/krzysied/perf-tests/stargazers","contributors_url":"https://api.github.com/repos/krzysied/perf-tests/contributors","subscribers_url":"https://api.github.com/repos/krzysied/perf-tests/subscribers","subscription_url":"https://api.github.com/repos/krzysied/perf-tests/subscription","commits_url":"https://api.github.com/repos/krzysied/perf-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzysied/perf-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzysied/perf-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzysied/perf-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzysied/perf-tests/contents/{+path}","compare_url":"https://api.github.com/repos/krzysied/perf-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzysied/perf-tests/merges","archive_url":"https://api.github.com/repos/krzysied/perf-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzysied/perf-tests/downloads","issues_url":"https://api.github.com/repos/krzysied/perf-tests/issues{/number}","pulls_url":"https://api.github.com/repos/krzysied/perf-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/krzysied/perf-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/krzysied/perf-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzysied/perf-tests/labels{/name}","releases_url":"https://api.github.com/repos/krzysied/perf-tests/releases{/id}","deployments_url":"https://api.github.com/repos/krzysied/perf-tests/deployments","created_at":"2018-04-10T09:33:00Z","updated_at":"2018-04-10T09:33:03Z","pushed_at":"2018-07-04T12:53:13Z","git_url":"git://github.com/krzysied/perf-tests.git","ssh_url":"git@github.com:krzysied/perf-tests.git","clone_url":"https://github.com/krzysied/perf-tests.git","svn_url":"https://github.com/krzysied/perf-tests","homepage":null,"size":49779,"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":"kubernetes:master","ref":"master","sha":"491024d587ca6009733399c36963565068642b86","user":{"login":"kubernetes","id":13629408,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI5NDA4","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":68769911,"node_id":"MDEwOlJlcG9zaXRvcnk2ODc2OTkxMQ==","name":"perf-tests","full_name":"kubernetes/perf-tests","owner":{"login":"kubernetes","id":13629408,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI5NDA4","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/perf-tests","description":"Performance tests and benchmarks","fork":false,"url":"https://api.github.com/repos/kubernetes/perf-tests","forks_url":"https://api.github.com/repos/kubernetes/perf-tests/forks","keys_url":"https://api.github.com/repos/kubernetes/perf-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/perf-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/perf-tests/teams","hooks_url":"https://api.github.com/repos/kubernetes/perf-tests/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/perf-tests/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/perf-tests/events","assignees_url":"https://api.github.com/repos/kubernetes/perf-tests/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/perf-tests/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/perf-tests/tags","blobs_url":"https://api.github.com/repos/kubernetes/perf-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/perf-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/perf-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/perf-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/perf-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/perf-tests/languages","stargazers_url":"https://api.github.com/repos/kubernetes/perf-tests/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/perf-tests/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/perf-tests/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/perf-tests/subscription","commits_url":"https://api.github.com/repos/kubernetes/perf-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/perf-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/perf-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/perf-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/perf-tests/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/perf-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/perf-tests/merges","archive_url":"https://api.github.com/repos/kubernetes/perf-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/perf-tests/downloads","issues_url":"https://api.github.com/repos/kubernetes/perf-tests/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/perf-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/perf-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/perf-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/perf-tests/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/perf-tests/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/perf-tests/deployments","created_at":"2016-09-21T01:59:44Z","updated_at":"2018-07-03T12:35:23Z","pushed_at":"2018-07-04T12:53:14Z","git_url":"git://github.com/kubernetes/perf-tests.git","ssh_url":"git@github.com:kubernetes/perf-tests.git","clone_url":"https://github.com/kubernetes/perf-tests.git","svn_url":"https://github.com/kubernetes/perf-tests","homepage":null,"size":49770,"stargazers_count":99,"watchers_count":99,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"archived":false,"open_issues_count":12,"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":67,"open_issues":12,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148"},"html":{"href":"https://github.com/kubernetes/perf-tests/pull/148"},"issue":{"href":"https://api.github.com/repos/kubernetes/perf-tests/issues/148"},"comments":{"href":"https://api.github.com/repos/kubernetes/perf-tests/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/perf-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/perf-tests/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/perf-tests/statuses/fe29e11b2077347d0c86234cf7409652891ba6cb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wojtek-t"}}