{"action":"created","comment":{"url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/comments/231203040","pull_request_review_id":172119213,"id":231203040,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTIwMzA0MA==","diff_hunk":"@@ -0,0 +1,72 @@\n+---\n+- name: Login As Super User\n+  shell: \"oc login -u {{ admin_user }} -p {{ admin_password }}\"\n+  when: cluster==\"openshift\"\n+    and admin_user is defined\n+    and admin_password is defined\n+\n+- name: Check if namespace \"{{ skydive_namespace }}\" exists\n+  shell: \"kubectl get ns | grep -w {{ skydive_namespace }} | awk \\'{ print $1 }\\'\"\n+  register: ns\n+\n+- name: Create {{ skydive_namespace }} namespace on the kubernetes cluster\n+  shell: kubectl create namespace {{ skydive_namespace }}\n+  when: ns.stdout != skydive_namespace\n+    and cluster==\"kubernetes\"\n+\n+- name: Create {{ skydive_namespace }} project on the openshift cluster\n+  shell: oc new-project {{ skydive_namespace }}\n+  when: ns.stdout != skydive_namespace\n+    and cluster==\"openshift\"\n+\n+- name: Render skydive deployment yaml for kubernetes\n+  template:\n+    src: kubernetes-skydive.yaml\n+    dest: /tmp/skydive.yaml\n+  when: cluster==\"kubernetes\"\n+\n+- name: Render skydive deployment yaml for openshift\n+  template:\n+    src: openshift-skydive.yaml\n+    dest: /tmp/skydive.yaml\n+  when: cluster==\"openshift\"\n+\n+- name: Deploy skydive for openshift","path":"roles/skydive/tasks/provision.yml","position":34,"original_position":34,"commit_id":"2c86ceabc5af99b1bbb1af3b0a85759b2b3be445","original_commit_id":"2c86ceabc5af99b1bbb1af3b0a85759b2b3be445","user":{"login":"rthallisey","id":6795213,"node_id":"MDQ6VXNlcjY3OTUyMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6795213?v=4","gravatar_id":"","url":"https://api.github.com/users/rthallisey","html_url":"https://github.com/rthallisey","followers_url":"https://api.github.com/users/rthallisey/followers","following_url":"https://api.github.com/users/rthallisey/following{/other_user}","gists_url":"https://api.github.com/users/rthallisey/gists{/gist_id}","starred_url":"https://api.github.com/users/rthallisey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rthallisey/subscriptions","organizations_url":"https://api.github.com/users/rthallisey/orgs","repos_url":"https://api.github.com/users/rthallisey/repos","events_url":"https://api.github.com/users/rthallisey/events{/privacy}","received_events_url":"https://api.github.com/users/rthallisey/received_events","type":"User","site_admin":false},"body":"this is redundant with the below task.  You can do an apply with both clients.","created_at":"2018-11-06T16:49:08Z","updated_at":"2018-11-06T16:50:00Z","html_url":"https://github.com/kubevirt/kubevirt-ansible/pull/438#discussion_r231203040","pull_request_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/comments/231203040"},"html":{"href":"https://github.com/kubevirt/kubevirt-ansible/pull/438#discussion_r231203040"},"pull_request":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438"}}},"pull_request":{"url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438","id":228170338,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MTcwMzM4","html_url":"https://github.com/kubevirt/kubevirt-ansible/pull/438","diff_url":"https://github.com/kubevirt/kubevirt-ansible/pull/438.diff","patch_url":"https://github.com/kubevirt/kubevirt-ansible/pull/438.patch","issue_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/438","number":438,"state":"open","locked":false,"title":"Skydive fork","user":{"login":"leongold","id":10177299,"node_id":"MDQ6VXNlcjEwMTc3Mjk5","avatar_url":"https://avatars1.githubusercontent.com/u/10177299?v=4","gravatar_id":"","url":"https://api.github.com/users/leongold","html_url":"https://github.com/leongold","followers_url":"https://api.github.com/users/leongold/followers","following_url":"https://api.github.com/users/leongold/following{/other_user}","gists_url":"https://api.github.com/users/leongold/gists{/gist_id}","starred_url":"https://api.github.com/users/leongold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leongold/subscriptions","organizations_url":"https://api.github.com/users/leongold/orgs","repos_url":"https://api.github.com/users/leongold/repos","events_url":"https://api.github.com/users/leongold/events{/privacy}","received_events_url":"https://api.github.com/users/leongold/received_events","type":"User","site_admin":false},"body":"What this PR does / why we need it:\r\nAllow the user to deploy skydive\r\n\r\n```release-note:\r\nDeploy skydive-project into the cluster\r\n```","created_at":"2018-11-04T11:10:29Z","updated_at":"2018-11-06T16:50:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"515f855ed871135241dc8c7dcb98152fb0cf4cad","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1080239013,"node_id":"MDU6TGFiZWwxMDgwMjM5MDEz","url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/labels/release-note","name":"release-note","color":"c2e0c6","default":false},{"id":1080239536,"node_id":"MDU6TGFiZWwxMDgwMjM5NTM2","url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/labels/size/L","name":"size/L","color":"ee9900","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438/commits","review_comments_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438/comments","review_comment_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/438/comments","statuses_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/statuses/2c86ceabc5af99b1bbb1af3b0a85759b2b3be445","head":{"label":"leongold:skydive-fork","ref":"skydive-fork","sha":"2c86ceabc5af99b1bbb1af3b0a85759b2b3be445","user":{"login":"leongold","id":10177299,"node_id":"MDQ6VXNlcjEwMTc3Mjk5","avatar_url":"https://avatars1.githubusercontent.com/u/10177299?v=4","gravatar_id":"","url":"https://api.github.com/users/leongold","html_url":"https://github.com/leongold","followers_url":"https://api.github.com/users/leongold/followers","following_url":"https://api.github.com/users/leongold/following{/other_user}","gists_url":"https://api.github.com/users/leongold/gists{/gist_id}","starred_url":"https://api.github.com/users/leongold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leongold/subscriptions","organizations_url":"https://api.github.com/users/leongold/orgs","repos_url":"https://api.github.com/users/leongold/repos","events_url":"https://api.github.com/users/leongold/events{/privacy}","received_events_url":"https://api.github.com/users/leongold/received_events","type":"User","site_admin":false},"repo":{"id":147180914,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcxODA5MTQ=","name":"kubevirt-ansible","full_name":"leongold/kubevirt-ansible","private":false,"owner":{"login":"leongold","id":10177299,"node_id":"MDQ6VXNlcjEwMTc3Mjk5","avatar_url":"https://avatars1.githubusercontent.com/u/10177299?v=4","gravatar_id":"","url":"https://api.github.com/users/leongold","html_url":"https://github.com/leongold","followers_url":"https://api.github.com/users/leongold/followers","following_url":"https://api.github.com/users/leongold/following{/other_user}","gists_url":"https://api.github.com/users/leongold/gists{/gist_id}","starred_url":"https://api.github.com/users/leongold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leongold/subscriptions","organizations_url":"https://api.github.com/users/leongold/orgs","repos_url":"https://api.github.com/users/leongold/repos","events_url":"https://api.github.com/users/leongold/events{/privacy}","received_events_url":"https://api.github.com/users/leongold/received_events","type":"User","site_admin":false},"html_url":"https://github.com/leongold/kubevirt-ansible","description":"Set of Ansible roles & playbooks for KubeVirt deployment","fork":true,"url":"https://api.github.com/repos/leongold/kubevirt-ansible","forks_url":"https://api.github.com/repos/leongold/kubevirt-ansible/forks","keys_url":"https://api.github.com/repos/leongold/kubevirt-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leongold/kubevirt-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leongold/kubevirt-ansible/teams","hooks_url":"https://api.github.com/repos/leongold/kubevirt-ansible/hooks","issue_events_url":"https://api.github.com/repos/leongold/kubevirt-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/leongold/kubevirt-ansible/events","assignees_url":"https://api.github.com/repos/leongold/kubevirt-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/leongold/kubevirt-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/leongold/kubevirt-ansible/tags","blobs_url":"https://api.github.com/repos/leongold/kubevirt-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leongold/kubevirt-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leongold/kubevirt-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/leongold/kubevirt-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leongold/kubevirt-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/leongold/kubevirt-ansible/languages","stargazers_url":"https://api.github.com/repos/leongold/kubevirt-ansible/stargazers","contributors_url":"https://api.github.com/repos/leongold/kubevirt-ansible/contributors","subscribers_url":"https://api.github.com/repos/leongold/kubevirt-ansible/subscribers","subscription_url":"https://api.github.com/repos/leongold/kubevirt-ansible/subscription","commits_url":"https://api.github.com/repos/leongold/kubevirt-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/leongold/kubevirt-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/leongold/kubevirt-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/leongold/kubevirt-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/leongold/kubevirt-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/leongold/kubevirt-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leongold/kubevirt-ansible/merges","archive_url":"https://api.github.com/repos/leongold/kubevirt-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leongold/kubevirt-ansible/downloads","issues_url":"https://api.github.com/repos/leongold/kubevirt-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/leongold/kubevirt-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/leongold/kubevirt-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/leongold/kubevirt-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leongold/kubevirt-ansible/labels{/name}","releases_url":"https://api.github.com/repos/leongold/kubevirt-ansible/releases{/id}","deployments_url":"https://api.github.com/repos/leongold/kubevirt-ansible/deployments","created_at":"2018-09-03T09:17:26Z","updated_at":"2018-09-03T09:17:28Z","pushed_at":"2018-11-06T12:33:45Z","git_url":"git://github.com/leongold/kubevirt-ansible.git","ssh_url":"git@github.com:leongold/kubevirt-ansible.git","clone_url":"https://github.com/leongold/kubevirt-ansible.git","svn_url":"https://github.com/leongold/kubevirt-ansible","homepage":"","size":79331,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"kubevirt:master","ref":"master","sha":"ed3bda9a7e19ed4e4559334f7e4926f67ba87fa7","user":{"login":"kubevirt","id":18700703,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzAwNzAz","avatar_url":"https://avatars1.githubusercontent.com/u/18700703?v=4","gravatar_id":"","url":"https://api.github.com/users/kubevirt","html_url":"https://github.com/kubevirt","followers_url":"https://api.github.com/users/kubevirt/followers","following_url":"https://api.github.com/users/kubevirt/following{/other_user}","gists_url":"https://api.github.com/users/kubevirt/gists{/gist_id}","starred_url":"https://api.github.com/users/kubevirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubevirt/subscriptions","organizations_url":"https://api.github.com/users/kubevirt/orgs","repos_url":"https://api.github.com/users/kubevirt/repos","events_url":"https://api.github.com/users/kubevirt/events{/privacy}","received_events_url":"https://api.github.com/users/kubevirt/received_events","type":"Organization","site_admin":false},"repo":{"id":103531813,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM1MzE4MTM=","name":"kubevirt-ansible","full_name":"kubevirt/kubevirt-ansible","private":false,"owner":{"login":"kubevirt","id":18700703,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzAwNzAz","avatar_url":"https://avatars1.githubusercontent.com/u/18700703?v=4","gravatar_id":"","url":"https://api.github.com/users/kubevirt","html_url":"https://github.com/kubevirt","followers_url":"https://api.github.com/users/kubevirt/followers","following_url":"https://api.github.com/users/kubevirt/following{/other_user}","gists_url":"https://api.github.com/users/kubevirt/gists{/gist_id}","starred_url":"https://api.github.com/users/kubevirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubevirt/subscriptions","organizations_url":"https://api.github.com/users/kubevirt/orgs","repos_url":"https://api.github.com/users/kubevirt/repos","events_url":"https://api.github.com/users/kubevirt/events{/privacy}","received_events_url":"https://api.github.com/users/kubevirt/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kubevirt/kubevirt-ansible","description":"Set of Ansible roles & playbooks for KubeVirt deployment","fork":false,"url":"https://api.github.com/repos/kubevirt/kubevirt-ansible","forks_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/forks","keys_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/teams","hooks_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/hooks","issue_events_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/events","assignees_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/tags","blobs_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/languages","stargazers_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/stargazers","contributors_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/contributors","subscribers_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/subscribers","subscription_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/subscription","commits_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/merges","archive_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/downloads","issues_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/labels{/name}","releases_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/releases{/id}","deployments_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/deployments","created_at":"2017-09-14T12:52:28Z","updated_at":"2018-11-06T15:16:11Z","pushed_at":"2018-11-06T16:36:12Z","git_url":"git://github.com/kubevirt/kubevirt-ansible.git","ssh_url":"git@github.com:kubevirt/kubevirt-ansible.git","clone_url":"https://github.com/kubevirt/kubevirt-ansible.git","svn_url":"https://github.com/kubevirt/kubevirt-ansible","homepage":"","size":79318,"stargazers_count":34,"watchers_count":34,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"archived":false,"open_issues_count":55,"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":51,"open_issues":55,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438"},"html":{"href":"https://github.com/kubevirt/kubevirt-ansible/pull/438"},"issue":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/438"},"comments":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/438/comments"},"review_comments":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438/comments"},"review_comment":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/pulls/438/commits"},"statuses":{"href":"https://api.github.com/repos/kubevirt/kubevirt-ansible/statuses/2c86ceabc5af99b1bbb1af3b0a85759b2b3be445"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rthallisey"}}