{"action":"created","comment":{"url":"https://api.github.com/repos/cloud-ark/labs/pulls/comments/242360301","pull_request_review_id":185852001,"id":242360301,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjM2MDMwMQ==","diff_hunk":"@@ -0,0 +1,288 @@\n+# postgres-operator\n+PostgreSQL Operator generated using Operator SDK library.\n+\n+## Operator SDK\n+This project makes use of the Operator SDK library to create a Kubernetes operator that\n+will handle and watch the creation of Postgres resources.\n+\n+## Requirements\n+\n+* [Minikube](https://kubernetes.io/docs/setup/minikube/) - For testing on a local cluster.\n+* kubectl - To interact with Kubernetes cluster.\n+* [golang](https://golang.org/dl/) - Language used for Operator development and deployment.\n+* PostgreSQL - Execute SQL queries locally that interact with the Postgres deployment.\n+\n+## How to test:\n+\n+After running the Minikube cluster, go into pkg/stub/handler.go and modify the variable MINIKUBE_IP to match the IP address\n+of your Minikube cluster.\n+\n+To find the IP address of your Minikube cluster run:\n+\n+```\n+$ minikube ip\n+```\n+\n+Before running the Operator make sure the CRD is applied to the cluster as a supported API resource:\n+\n+```\n+$ kubectl create -f deploy/crd.yaml\n+```\n+\n+Run the Operator locally:\n+\n+```\n+$ operator-sdk up local --kubeconfig=$HOME/.kube/config\n+```\n+\n+NOTE: The flag --kubeconfig redirects the operator to be configured to interact with minikube. \n+      The handler needs to know where minikube is and how to execute functions to interact with \n+      minikube. The above path is the default path to the .kube/config. If for whatever reason\n+      your path is different, make the necessary changes to match your path.\n+\n+Open a new terminal while the Operator is running in the other one.\n+\n+Run the following command to begin testing:\n+\n+```\n+$ kubectl create -f deploy/client1.yaml\n+```\n+\n+The above command creates a Postgres instance named client1 that contains a Postgres image \n+and several Postgres queries to be ran upon launch of the instance.\n+The Postgres Operator should catch this deployment and begin creating the corresponding Deployment and Service objects.\n+\n+Run the following commands to verify that the operator is doing what it is supposed to do:\n+\n+```\n+$ kubectl get crd\n+$ kubectl get postgres client1\n+$ kubectl describe postgres client1\n+$ psql -h <IP> -p <port> -U <username> -d <db-name>\n+```\n+For the last command above, plug in the values of the IP and port numbers generated in the Operator output\n+as per service object availability.\n+For the username and db-name, go to deploy/client1.yaml and use the values for the username and database specified.\n+When prompted for password, use the password in the client1.yaml as well.\n+\n+## Acknowledgements\n+This Postgres operator is completely based off of Cloud-Ark's [Postgres Custom Controller](https://github.com/cloud-ark/kubeplus/tree/master/postgres-crd-v2) as is most of the code in the Handler.go file\n+\n+------\n+\n+## Purpose of Experiment\n+\n+--> Talk about the hypothesis of the experiment that Operator SDK might be less performant than sample-controller.\n+Give the reason why we think this might be the case. Refer to the Github issue about this from Operator SDK repo.","path":"postgres-operator-sdk/README.md","position":76,"original_position":76,"commit_id":"a3377c896518e34f1a8fa5c75e42c49212d50deb","original_commit_id":"a3377c896518e34f1a8fa5c75e42c49212d50deb","user":{"login":"devdattakulkarni","id":732525,"node_id":"MDQ6VXNlcjczMjUyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/732525?v=4","gravatar_id":"","url":"https://api.github.com/users/devdattakulkarni","html_url":"https://github.com/devdattakulkarni","followers_url":"https://api.github.com/users/devdattakulkarni/followers","following_url":"https://api.github.com/users/devdattakulkarni/following{/other_user}","gists_url":"https://api.github.com/users/devdattakulkarni/gists{/gist_id}","starred_url":"https://api.github.com/users/devdattakulkarni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devdattakulkarni/subscriptions","organizations_url":"https://api.github.com/users/devdattakulkarni/orgs","repos_url":"https://api.github.com/users/devdattakulkarni/repos","events_url":"https://api.github.com/users/devdattakulkarni/events{/privacy}","received_events_url":"https://api.github.com/users/devdattakulkarni/received_events","type":"User","site_admin":false},"body":"This is no longer relevant. ","created_at":"2018-12-17T23:47:45Z","updated_at":"2018-12-17T23:47:45Z","html_url":"https://github.com/cloud-ark/labs/pull/8#discussion_r242360301","pull_request_url":"https://api.github.com/repos/cloud-ark/labs/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cloud-ark/labs/pulls/comments/242360301"},"html":{"href":"https://github.com/cloud-ark/labs/pull/8#discussion_r242360301"},"pull_request":{"href":"https://api.github.com/repos/cloud-ark/labs/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/cloud-ark/labs/pulls/8","id":236008799,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MDA4Nzk5","html_url":"https://github.com/cloud-ark/labs/pull/8","diff_url":"https://github.com/cloud-ark/labs/pull/8.diff","patch_url":"https://github.com/cloud-ark/labs/pull/8.patch","issue_url":"https://api.github.com/repos/cloud-ark/labs/issues/8","number":8,"state":"open","locked":false,"title":"Added New Operator SDK","user":{"login":"NoahElzein","id":31901158,"node_id":"MDQ6VXNlcjMxOTAxMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/31901158?v=4","gravatar_id":"","url":"https://api.github.com/users/NoahElzein","html_url":"https://github.com/NoahElzein","followers_url":"https://api.github.com/users/NoahElzein/followers","following_url":"https://api.github.com/users/NoahElzein/following{/other_user}","gists_url":"https://api.github.com/users/NoahElzein/gists{/gist_id}","starred_url":"https://api.github.com/users/NoahElzein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoahElzein/subscriptions","organizations_url":"https://api.github.com/users/NoahElzein/orgs","repos_url":"https://api.github.com/users/NoahElzein/repos","events_url":"https://api.github.com/users/NoahElzein/events{/privacy}","received_events_url":"https://api.github.com/users/NoahElzein/received_events","type":"User","site_admin":false},"body":"I kept the cache within the structure as we discussed.\r\n\r\nAll spots with r.client calls in the Controller are spots we must substitute the cache with. \r\n\r\nI would appreciate comments on where I can retreieve the Postgres cache initially.\r\n\r\nThanks!","created_at":"2018-12-05T00:41:17Z","updated_at":"2018-12-17T23:47:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb06c76fbea58d9730c11e254b91d84afbfd3f67","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloud-ark/labs/pulls/8/commits","review_comments_url":"https://api.github.com/repos/cloud-ark/labs/pulls/8/comments","review_comment_url":"https://api.github.com/repos/cloud-ark/labs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloud-ark/labs/issues/8/comments","statuses_url":"https://api.github.com/repos/cloud-ark/labs/statuses/a3377c896518e34f1a8fa5c75e42c49212d50deb","head":{"label":"NoahElzein:master","ref":"master","sha":"a3377c896518e34f1a8fa5c75e42c49212d50deb","user":{"login":"NoahElzein","id":31901158,"node_id":"MDQ6VXNlcjMxOTAxMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/31901158?v=4","gravatar_id":"","url":"https://api.github.com/users/NoahElzein","html_url":"https://github.com/NoahElzein","followers_url":"https://api.github.com/users/NoahElzein/followers","following_url":"https://api.github.com/users/NoahElzein/following{/other_user}","gists_url":"https://api.github.com/users/NoahElzein/gists{/gist_id}","starred_url":"https://api.github.com/users/NoahElzein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoahElzein/subscriptions","organizations_url":"https://api.github.com/users/NoahElzein/orgs","repos_url":"https://api.github.com/users/NoahElzein/repos","events_url":"https://api.github.com/users/NoahElzein/events{/privacy}","received_events_url":"https://api.github.com/users/NoahElzein/received_events","type":"User","site_admin":false},"repo":{"id":154041027,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQwNDEwMjc=","name":"labs","full_name":"NoahElzein/labs","private":false,"owner":{"login":"NoahElzein","id":31901158,"node_id":"MDQ6VXNlcjMxOTAxMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/31901158?v=4","gravatar_id":"","url":"https://api.github.com/users/NoahElzein","html_url":"https://github.com/NoahElzein","followers_url":"https://api.github.com/users/NoahElzein/followers","following_url":"https://api.github.com/users/NoahElzein/following{/other_user}","gists_url":"https://api.github.com/users/NoahElzein/gists{/gist_id}","starred_url":"https://api.github.com/users/NoahElzein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoahElzein/subscriptions","organizations_url":"https://api.github.com/users/NoahElzein/orgs","repos_url":"https://api.github.com/users/NoahElzein/repos","events_url":"https://api.github.com/users/NoahElzein/events{/privacy}","received_events_url":"https://api.github.com/users/NoahElzein/received_events","type":"User","site_admin":false},"html_url":"https://github.com/NoahElzein/labs","description":null,"fork":true,"url":"https://api.github.com/repos/NoahElzein/labs","forks_url":"https://api.github.com/repos/NoahElzein/labs/forks","keys_url":"https://api.github.com/repos/NoahElzein/labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoahElzein/labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoahElzein/labs/teams","hooks_url":"https://api.github.com/repos/NoahElzein/labs/hooks","issue_events_url":"https://api.github.com/repos/NoahElzein/labs/issues/events{/number}","events_url":"https://api.github.com/repos/NoahElzein/labs/events","assignees_url":"https://api.github.com/repos/NoahElzein/labs/assignees{/user}","branches_url":"https://api.github.com/repos/NoahElzein/labs/branches{/branch}","tags_url":"https://api.github.com/repos/NoahElzein/labs/tags","blobs_url":"https://api.github.com/repos/NoahElzein/labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoahElzein/labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoahElzein/labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoahElzein/labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoahElzein/labs/statuses/{sha}","languages_url":"https://api.github.com/repos/NoahElzein/labs/languages","stargazers_url":"https://api.github.com/repos/NoahElzein/labs/stargazers","contributors_url":"https://api.github.com/repos/NoahElzein/labs/contributors","subscribers_url":"https://api.github.com/repos/NoahElzein/labs/subscribers","subscription_url":"https://api.github.com/repos/NoahElzein/labs/subscription","commits_url":"https://api.github.com/repos/NoahElzein/labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoahElzein/labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoahElzein/labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoahElzein/labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoahElzein/labs/contents/{+path}","compare_url":"https://api.github.com/repos/NoahElzein/labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoahElzein/labs/merges","archive_url":"https://api.github.com/repos/NoahElzein/labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoahElzein/labs/downloads","issues_url":"https://api.github.com/repos/NoahElzein/labs/issues{/number}","pulls_url":"https://api.github.com/repos/NoahElzein/labs/pulls{/number}","milestones_url":"https://api.github.com/repos/NoahElzein/labs/milestones{/number}","notifications_url":"https://api.github.com/repos/NoahElzein/labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoahElzein/labs/labels{/name}","releases_url":"https://api.github.com/repos/NoahElzein/labs/releases{/id}","deployments_url":"https://api.github.com/repos/NoahElzein/labs/deployments","created_at":"2018-10-21T18:46:09Z","updated_at":"2018-12-05T00:36:19Z","pushed_at":"2018-12-05T00:36:16Z","git_url":"git://github.com/NoahElzein/labs.git","ssh_url":"git@github.com:NoahElzein/labs.git","clone_url":"https://github.com/NoahElzein/labs.git","svn_url":"https://github.com/NoahElzein/labs","homepage":null,"size":96150,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cloud-ark:master","ref":"master","sha":"ee8fafb488819f3a04ab752c6bf5771c6f3b91f6","user":{"login":"cloud-ark","id":31072989,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMDcyOTg5","avatar_url":"https://avatars3.githubusercontent.com/u/31072989?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-ark","html_url":"https://github.com/cloud-ark","followers_url":"https://api.github.com/users/cloud-ark/followers","following_url":"https://api.github.com/users/cloud-ark/following{/other_user}","gists_url":"https://api.github.com/users/cloud-ark/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-ark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-ark/subscriptions","organizations_url":"https://api.github.com/users/cloud-ark/orgs","repos_url":"https://api.github.com/users/cloud-ark/repos","events_url":"https://api.github.com/users/cloud-ark/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-ark/received_events","type":"Organization","site_admin":false},"repo":{"id":130756572,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA3NTY1NzI=","name":"labs","full_name":"cloud-ark/labs","private":false,"owner":{"login":"cloud-ark","id":31072989,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMDcyOTg5","avatar_url":"https://avatars3.githubusercontent.com/u/31072989?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-ark","html_url":"https://github.com/cloud-ark","followers_url":"https://api.github.com/users/cloud-ark/followers","following_url":"https://api.github.com/users/cloud-ark/following{/other_user}","gists_url":"https://api.github.com/users/cloud-ark/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-ark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-ark/subscriptions","organizations_url":"https://api.github.com/users/cloud-ark/orgs","repos_url":"https://api.github.com/users/cloud-ark/repos","events_url":"https://api.github.com/users/cloud-ark/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-ark/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cloud-ark/labs","description":null,"fork":false,"url":"https://api.github.com/repos/cloud-ark/labs","forks_url":"https://api.github.com/repos/cloud-ark/labs/forks","keys_url":"https://api.github.com/repos/cloud-ark/labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloud-ark/labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloud-ark/labs/teams","hooks_url":"https://api.github.com/repos/cloud-ark/labs/hooks","issue_events_url":"https://api.github.com/repos/cloud-ark/labs/issues/events{/number}","events_url":"https://api.github.com/repos/cloud-ark/labs/events","assignees_url":"https://api.github.com/repos/cloud-ark/labs/assignees{/user}","branches_url":"https://api.github.com/repos/cloud-ark/labs/branches{/branch}","tags_url":"https://api.github.com/repos/cloud-ark/labs/tags","blobs_url":"https://api.github.com/repos/cloud-ark/labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloud-ark/labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloud-ark/labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloud-ark/labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloud-ark/labs/statuses/{sha}","languages_url":"https://api.github.com/repos/cloud-ark/labs/languages","stargazers_url":"https://api.github.com/repos/cloud-ark/labs/stargazers","contributors_url":"https://api.github.com/repos/cloud-ark/labs/contributors","subscribers_url":"https://api.github.com/repos/cloud-ark/labs/subscribers","subscription_url":"https://api.github.com/repos/cloud-ark/labs/subscription","commits_url":"https://api.github.com/repos/cloud-ark/labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloud-ark/labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloud-ark/labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloud-ark/labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloud-ark/labs/contents/{+path}","compare_url":"https://api.github.com/repos/cloud-ark/labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloud-ark/labs/merges","archive_url":"https://api.github.com/repos/cloud-ark/labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloud-ark/labs/downloads","issues_url":"https://api.github.com/repos/cloud-ark/labs/issues{/number}","pulls_url":"https://api.github.com/repos/cloud-ark/labs/pulls{/number}","milestones_url":"https://api.github.com/repos/cloud-ark/labs/milestones{/number}","notifications_url":"https://api.github.com/repos/cloud-ark/labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloud-ark/labs/labels{/name}","releases_url":"https://api.github.com/repos/cloud-ark/labs/releases{/id}","deployments_url":"https://api.github.com/repos/cloud-ark/labs/deployments","created_at":"2018-04-23T21:03:56Z","updated_at":"2018-11-03T07:07:57Z","pushed_at":"2018-12-05T00:41:18Z","git_url":"git://github.com/cloud-ark/labs.git","ssh_url":"git@github.com:cloud-ark/labs.git","clone_url":"https://github.com/cloud-ark/labs.git","svn_url":"https://github.com/cloud-ark/labs","homepage":null,"size":94793,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloud-ark/labs/pulls/8"},"html":{"href":"https://github.com/cloud-ark/labs/pull/8"},"issue":{"href":"https://api.github.com/repos/cloud-ark/labs/issues/8"},"comments":{"href":"https://api.github.com/repos/cloud-ark/labs/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/cloud-ark/labs/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/cloud-ark/labs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloud-ark/labs/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/cloud-ark/labs/statuses/a3377c896518e34f1a8fa5c75e42c49212d50deb"}},"author_association":"NONE"}}
{"actor":{"display_login":"devdattakulkarni"}}