payload: {"action":"created","comment":{"url":"https://api.github.com/repos/openshift/hive/pulls/comments/286906192","pull_request_review_id":241154089,"id":286906192,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NjkwNjE5Mg==","diff_hunk":"@@ -79,52 +79,22 @@ NOTE: assumes you have previously deployed using one of the above methods.\n \n ### Create a ClusterDeployment using the latest OpenShift release and installer image\n \n+Hiveutil offers a create-cluster subcommand which simplifies creating the API custom resources for a Hive ClusterDeployment.\n+\n ```bash\n-export CLUSTER_NAME=\"${USER}\"\n-export SSH_PUB_KEY=\"$(ssh-keygen -y -f ~/.ssh/libra.pem)\"\n-export PULL_SECRET=\"$(cat ${HOME}/config.json)\"\n-\n-oc process -f config/templates/cluster-deployment.yaml \\\n-   CLUSTER_NAME=\"${CLUSTER_NAME}\" \\\n-   SSH_KEY=\"${SSH_PUB_KEY}\" \\\n-   PULL_SECRET=\"${PULL_SECRET}\" \\\n-   AWS_ACCESS_KEY_ID=\"${AWS_ACCESS_KEY_ID}\" \\\n-   AWS_SECRET_ACCESS_KEY=\"${AWS_SECRET_ACCESS_KEY}\" \\\n-   | oc apply -f -\n+make hiveutil\n ```\n----\n-**NOTE**\n-\n-You must give each cluster an unique name If you are creating more than one cluster.\n-\n----\n \n-### Create a ClusterDeployment using latest pinned and known stable container images\n+To view what create-cluster generates, *without* submitting it to the API server:\n \n ```bash\n-export CLUSTER_NAME=\"${USER}\"\n-export SSH_PUB_KEY=\"$(ssh-keygen -y -f ~/.ssh/libra.pem)\"\n-export PULL_SECRET=\"$(cat ${HOME}/config.json)\"\n-export HIVE_IMAGE=\"quay.io/twiest/hive-controller:20190128\"\n-export HIVE_IMAGE_PULL_POLICY=\"Always\"\n-export INSTALLER_IMAGE=\"quay.io/twiest/installer:20190128\"\n-export INSTALLER_IMAGE_PULL_POLICY=\"Always\"\n-export RELEASE_IMAGE=\"quay.io/openshift-release-dev/ocp-release:4.0.0-0.1\"\n-\n-oc process -f config/templates/cluster-deployment.yaml \\\n-   CLUSTER_NAME=\"${CLUSTER_NAME}\" \\\n-   SSH_KEY=\"${SSH_PUB_KEY}\" \\\n-   PULL_SECRET=\"${PULL_SECRET}\" \\\n-   AWS_ACCESS_KEY_ID=\"${AWS_ACCESS_KEY_ID}\" \\\n-   AWS_SECRET_ACCESS_KEY=\"${AWS_SECRET_ACCESS_KEY}\" \\\n-   HIVE_IMAGE=\"${HIVE_IMAGE}\" \\\n-   HIVE_IMAGE_PULL_POLICY=\"${HIVE_IMAGE_PULL_POLICY}\" \\\n-   INSTALLER_IMAGE=\"${INSTALLER_IMAGE}\" \\\n-   INSTALLER_IMAGE_PULL_POLICY=\"${INSTALLER_IMAGE_PULL_POLICY}\" \\\n-   RELEASE_IMAGE=\"${RELEASE_IMAGE}\" \\\n-   | oc apply -f -\n+bin/hiveutil create-cluster --base-domain=mycluster.new-installer.openshift.com --pull-secret-file ~/.pull-secret --ssh-key-file ~/.ssh/id_rsa.pub mycluster\n ```\n \n+Add `-o yaml` to the above command if you wish to see the API objects that would be sent to the server, without actually submitting. If you need to make any changes not supported by create-cluster options, the output can be saved, edited, and then submitted with `kubectl apply`.","path":"README.md","position":55,"original_position":55,"commit_id":"1cc985be99c353234d0bd48ea64276ca424753a8","original_commit_id":"1cc985be99c353234d0bd48ea64276ca424753a8","user":{"login":"LalatenduMohanty","id":3125299,"node_id":"MDQ6VXNlcjMxMjUyOTk=","avatar_url":"https://avatars2.githubusercontent.com/u/3125299?v=4","gravatar_id":"","url":"https://api.github.com/users/LalatenduMohanty","html_url":"https://github.com/LalatenduMohanty","followers_url":"https://api.github.com/users/LalatenduMohanty/followers","following_url":"https://api.github.com/users/LalatenduMohanty/following{/other_user}","gists_url":"https://api.github.com/users/LalatenduMohanty/gists{/gist_id}","starred_url":"https://api.github.com/users/LalatenduMohanty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LalatenduMohanty/subscriptions","organizations_url":"https://api.github.com/users/LalatenduMohanty/orgs","repos_url":"https://api.github.com/users/LalatenduMohanty/repos","events_url":"https://api.github.com/users/LalatenduMohanty/events{/privacy}","received_events_url":"https://api.github.com/users/LalatenduMohanty/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2019-05-23T11:56:58Z","updated_at":"2019-05-23T11:56:58Z","html_url":"https://github.com/openshift/hive/pull/397#discussion_r286906192","pull_request_url":"https://api.github.com/repos/openshift/hive/pulls/397","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openshift/hive/pulls/comments/286906192"},"html":{"href":"https://github.com/openshift/hive/pull/397#discussion_r286906192"},"pull_request":{"href":"https://api.github.com/repos/openshift/hive/pulls/397"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/hive/pulls/397","id":281559191,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgxNTU5MTkx","html_url":"https://github.com/openshift/hive/pull/397","diff_url":"https://github.com/openshift/hive/pull/397.diff","patch_url":"https://github.com/openshift/hive/pull/397.patch","issue_url":"https://api.github.com/repos/openshift/hive/issues/397","number":397,"state":"open","locked":false,"title":"Change README to use create-cluster instead of template.","user":{"login":"dgoodwin","id":51265,"node_id":"MDQ6VXNlcjUxMjY1","avatar_url":"https://avatars3.githubusercontent.com/u/51265?v=4","gravatar_id":"","url":"https://api.github.com/users/dgoodwin","html_url":"https://github.com/dgoodwin","followers_url":"https://api.github.com/users/dgoodwin/followers","following_url":"https://api.github.com/users/dgoodwin/following{/other_user}","gists_url":"https://api.github.com/users/dgoodwin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoodwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoodwin/subscriptions","organizations_url":"https://api.github.com/users/dgoodwin/orgs","repos_url":"https://api.github.com/users/dgoodwin/repos","events_url":"https://api.github.com/users/dgoodwin/events{/privacy}","received_events_url":"https://api.github.com/users/dgoodwin/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-05-23T11:24:24Z","updated_at":"2019-05-23T11:56:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff3080d4977e7feb01bbdcebd3f106c952252b49","assignee":null,"assignees":[],"requested_reviewers":[{"login":"twiest","id":732867,"node_id":"MDQ6VXNlcjczMjg2Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/732867?v=4","gravatar_id":"","url":"https://api.github.com/users/twiest","html_url":"https://github.com/twiest","followers_url":"https://api.github.com/users/twiest/followers","following_url":"https://api.github.com/users/twiest/following{/other_user}","gists_url":"https://api.github.com/users/twiest/gists{/gist_id}","starred_url":"https://api.github.com/users/twiest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twiest/subscriptions","organizations_url":"https://api.github.com/users/twiest/orgs","repos_url":"https://api.github.com/users/twiest/repos","events_url":"https://api.github.com/users/twiest/events{/privacy}","received_events_url":"https://api.github.com/users/twiest/received_events","type":"User","site_admin":false},{"login":"csrwng","id":5834976,"node_id":"MDQ6VXNlcjU4MzQ5NzY=","avatar_url":"https://avatars1.githubusercontent.com/u/5834976?v=4","gravatar_id":"","url":"https://api.github.com/users/csrwng","html_url":"https://github.com/csrwng","followers_url":"https://api.github.com/users/csrwng/followers","following_url":"https://api.github.com/users/csrwng/following{/other_user}","gists_url":"https://api.github.com/users/csrwng/gists{/gist_id}","starred_url":"https://api.github.com/users/csrwng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csrwng/subscriptions","organizations_url":"https://api.github.com/users/csrwng/orgs","repos_url":"https://api.github.com/users/csrwng/repos","events_url":"https://api.github.com/users/csrwng/events{/privacy}","received_events_url":"https://api.github.com/users/csrwng/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1065256951,"node_id":"MDU6TGFiZWwxMDY1MjU2OTUx","url":"https://api.github.com/repos/openshift/hive/labels/approved","name":"approved","color":"0ffa16","default":false},{"id":1062267405,"node_id":"MDU6TGFiZWwxMDYyMjY3NDA1","url":"https://api.github.com/repos/openshift/hive/labels/size/M","name":"size/M","color":"eebb00","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/hive/pulls/397/commits","review_comments_url":"https://api.github.com/repos/openshift/hive/pulls/397/comments","review_comment_url":"https://api.github.com/repos/openshift/hive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/hive/issues/397/comments","statuses_url":"https://api.github.com/repos/openshift/hive/statuses/1cc985be99c353234d0bd48ea64276ca424753a8","head":{"label":"dgoodwin:readme-create-cluster","ref":"readme-create-cluster","sha":"1cc985be99c353234d0bd48ea64276ca424753a8","user":{"login":"dgoodwin","id":51265,"node_id":"MDQ6VXNlcjUxMjY1","avatar_url":"https://avatars3.githubusercontent.com/u/51265?v=4","gravatar_id":"","url":"https://api.github.com/users/dgoodwin","html_url":"https://github.com/dgoodwin","followers_url":"https://api.github.com/users/dgoodwin/followers","following_url":"https://api.github.com/users/dgoodwin/following{/other_user}","gists_url":"https://api.github.com/users/dgoodwin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoodwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoodwin/subscriptions","organizations_url":"https://api.github.com/users/dgoodwin/orgs","repos_url":"https://api.github.com/users/dgoodwin/repos","events_url":"https://api.github.com/users/dgoodwin/events{/privacy}","received_events_url":"https://api.github.com/users/dgoodwin/received_events","type":"User","site_admin":false},"repo":{"id":148791457,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg3OTE0NTc=","name":"hive","full_name":"dgoodwin/hive","private":false,"owner":{"login":"dgoodwin","id":51265,"node_id":"MDQ6VXNlcjUxMjY1","avatar_url":"https://avatars3.githubusercontent.com/u/51265?v=4","gravatar_id":"","url":"https://api.github.com/users/dgoodwin","html_url":"https://github.com/dgoodwin","followers_url":"https://api.github.com/users/dgoodwin/followers","following_url":"https://api.github.com/users/dgoodwin/following{/other_user}","gists_url":"https://api.github.com/users/dgoodwin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoodwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoodwin/subscriptions","organizations_url":"https://api.github.com/users/dgoodwin/orgs","repos_url":"https://api.github.com/users/dgoodwin/repos","events_url":"https://api.github.com/users/dgoodwin/events{/privacy}","received_events_url":"https://api.github.com/users/dgoodwin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dgoodwin/hive","description":"API driven OpenShift cluster provisioning and management","fork":true,"url":"https://api.github.com/repos/dgoodwin/hive","forks_url":"https://api.github.com/repos/dgoodwin/hive/forks","keys_url":"https://api.github.com/repos/dgoodwin/hive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgoodwin/hive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgoodwin/hive/teams","hooks_url":"https://api.github.com/repos/dgoodwin/hive/hooks","issue_events_url":"https://api.github.com/repos/dgoodwin/hive/issues/events{/number}","events_url":"https://api.github.com/repos/dgoodwin/hive/events","assignees_url":"https://api.github.com/repos/dgoodwin/hive/assignees{/user}","branches_url":"https://api.github.com/repos/dgoodwin/hive/branches{/branch}","tags_url":"https://api.github.com/repos/dgoodwin/hive/tags","blobs_url":"https://api.github.com/repos/dgoodwin/hive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgoodwin/hive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgoodwin/hive/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgoodwin/hive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgoodwin/hive/statuses/{sha}","languages_url":"https://api.github.com/repos/dgoodwin/hive/languages","stargazers_url":"https://api.github.com/repos/dgoodwin/hive/stargazers","contributors_url":"https://api.github.com/repos/dgoodwin/hive/contributors","subscribers_url":"https://api.github.com/repos/dgoodwin/hive/subscribers","subscription_url":"https://api.github.com/repos/dgoodwin/hive/subscription","commits_url":"https://api.github.com/repos/dgoodwin/hive/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgoodwin/hive/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgoodwin/hive/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgoodwin/hive/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgoodwin/hive/contents/{+path}","compare_url":"https://api.github.com/repos/dgoodwin/hive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgoodwin/hive/merges","archive_url":"https://api.github.com/repos/dgoodwin/hive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgoodwin/hive/downloads","issues_url":"https://api.github.com/repos/dgoodwin/hive/issues{/number}","pulls_url":"https://api.github.com/repos/dgoodwin/hive/pulls{/number}","milestones_url":"https://api.github.com/repos/dgoodwin/hive/milestones{/number}","notifications_url":"https://api.github.com/repos/dgoodwin/hive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgoodwin/hive/labels{/name}","releases_url":"https://api.github.com/repos/dgoodwin/hive/releases{/id}","deployments_url":"https://api.github.com/repos/dgoodwin/hive/deployments","created_at":"2018-09-14T13:20:26Z","updated_at":"2019-03-28T11:08:35Z","pushed_at":"2019-05-23T11:52:22Z","git_url":"git://github.com/dgoodwin/hive.git","ssh_url":"git@github.com:dgoodwin/hive.git","clone_url":"https://github.com/dgoodwin/hive.git","svn_url":"https://github.com/dgoodwin/hive","homepage":null,"size":50317,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":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":"openshift:master","ref":"master","sha":"fdf2768cf297fd93ceb8e20d388f666d98acc8e0","user":{"login":"openshift","id":792337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MjMzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":148682741,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg2ODI3NDE=","name":"hive","full_name":"openshift/hive","private":false,"owner":{"login":"openshift","id":792337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MjMzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openshift/hive","description":"API driven OpenShift cluster provisioning and management","fork":false,"url":"https://api.github.com/repos/openshift/hive","forks_url":"https://api.github.com/repos/openshift/hive/forks","keys_url":"https://api.github.com/repos/openshift/hive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/hive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/hive/teams","hooks_url":"https://api.github.com/repos/openshift/hive/hooks","issue_events_url":"https://api.github.com/repos/openshift/hive/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/hive/events","assignees_url":"https://api.github.com/repos/openshift/hive/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/hive/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/hive/tags","blobs_url":"https://api.github.com/repos/openshift/hive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/hive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/hive/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/hive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/hive/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/hive/languages","stargazers_url":"https://api.github.com/repos/openshift/hive/stargazers","contributors_url":"https://api.github.com/repos/openshift/hive/contributors","subscribers_url":"https://api.github.com/repos/openshift/hive/subscribers","subscription_url":"https://api.github.com/repos/openshift/hive/subscription","commits_url":"https://api.github.com/repos/openshift/hive/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/hive/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/hive/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/hive/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/hive/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/hive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/hive/merges","archive_url":"https://api.github.com/repos/openshift/hive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/hive/downloads","issues_url":"https://api.github.com/repos/openshift/hive/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/hive/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/hive/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/hive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/hive/labels{/name}","releases_url":"https://api.github.com/repos/openshift/hive/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/hive/deployments","created_at":"2018-09-13T18:47:21Z","updated_at":"2019-05-22T17:05:10Z","pushed_at":"2019-05-23T11:55:28Z","git_url":"git://github.com/openshift/hive.git","ssh_url":"git@github.com:openshift/hive.git","clone_url":"https://github.com/openshift/hive.git","svn_url":"https://github.com/openshift/hive","homepage":null,"size":50335,"stargazers_count":31,"watchers_count":31,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"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":35,"open_issues":8,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/hive/pulls/397"},"html":{"href":"https://github.com/openshift/hive/pull/397"},"issue":{"href":"https://api.github.com/repos/openshift/hive/issues/397"},"comments":{"href":"https://api.github.com/repos/openshift/hive/issues/397/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/hive/pulls/397/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/hive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/hive/pulls/397/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/hive/statuses/1cc985be99c353234d0bd48ea64276ca424753a8"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"LalatenduMohanty"}}