{"action":"opened","number":168,"pull_request":{"url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/168","id":223338847,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMzM4ODQ3","html_url":"https://github.com/Kong/kubernetes-ingress-controller/pull/168","diff_url":"https://github.com/Kong/kubernetes-ingress-controller/pull/168.diff","patch_url":"https://github.com/Kong/kubernetes-ingress-controller/pull/168.patch","issue_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/168","number":168,"state":"open","locked":false,"title":"feat(deploy) add initContainer to wait for DB state","user":{"login":"hbagdi","id":4694585,"node_id":"MDQ6VXNlcjQ2OTQ1ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/4694585?v=4","gravatar_id":"","url":"https://api.github.com/users/hbagdi","html_url":"https://github.com/hbagdi","followers_url":"https://api.github.com/users/hbagdi/followers","following_url":"https://api.github.com/users/hbagdi/following{/other_user}","gists_url":"https://api.github.com/users/hbagdi/gists{/gist_id}","starred_url":"https://api.github.com/users/hbagdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbagdi/subscriptions","organizations_url":"https://api.github.com/users/hbagdi/orgs","repos_url":"https://api.github.com/users/hbagdi/repos","events_url":"https://api.github.com/users/hbagdi/events{/privacy}","received_events_url":"https://api.github.com/users/hbagdi/received_events","type":"User","site_admin":false},"body":"Kong can startup only if the DB schema is up to date.\r\nIf Postgres is not up or the schema is not up to date, then Kong\r\nwill fail to start, resulting in Pod restarts.\r\n\r\nThis change will wait for Postgres to be up and migrations to finish\r\nrunning, avoiding restarts and failures in Kubernetes.\r\n\r\nThere is currently no way to verify if DB state is at the correct\r\nversion and hence we resort to a hack of actualling starting Kong and\r\nstopping it in the init container.\r\n\r\nWith Kong >= 0.15.0, Kong will have a CLI command to check if migrations\r\nare up to date or not.","created_at":"2018-10-16T17:44:08Z","updated_at":"2018-10-16T17:44:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/168/commits","review_comments_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/168/comments","review_comment_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/168/comments","statuses_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/statuses/ad4ce24a77e5bfe4c4a99dd7b09098531c10a538","head":{"label":"Kong:feat/wait-for-db-deploy","ref":"feat/wait-for-db-deploy","sha":"ad4ce24a77e5bfe4c4a99dd7b09098531c10a538","user":{"login":"Kong","id":962416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjQxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/962416?v=4","gravatar_id":"","url":"https://api.github.com/users/Kong","html_url":"https://github.com/Kong","followers_url":"https://api.github.com/users/Kong/followers","following_url":"https://api.github.com/users/Kong/following{/other_user}","gists_url":"https://api.github.com/users/Kong/gists{/gist_id}","starred_url":"https://api.github.com/users/Kong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kong/subscriptions","organizations_url":"https://api.github.com/users/Kong/orgs","repos_url":"https://api.github.com/users/Kong/repos","events_url":"https://api.github.com/users/Kong/events{/privacy}","received_events_url":"https://api.github.com/users/Kong/received_events","type":"Organization","site_admin":false},"repo":{"id":127765544,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc3NjU1NDQ=","name":"kubernetes-ingress-controller","full_name":"Kong/kubernetes-ingress-controller","private":false,"owner":{"login":"Kong","id":962416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjQxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/962416?v=4","gravatar_id":"","url":"https://api.github.com/users/Kong","html_url":"https://github.com/Kong","followers_url":"https://api.github.com/users/Kong/followers","following_url":"https://api.github.com/users/Kong/following{/other_user}","gists_url":"https://api.github.com/users/Kong/gists{/gist_id}","starred_url":"https://api.github.com/users/Kong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kong/subscriptions","organizations_url":"https://api.github.com/users/Kong/orgs","repos_url":"https://api.github.com/users/Kong/repos","events_url":"https://api.github.com/users/Kong/events{/privacy}","received_events_url":"https://api.github.com/users/Kong/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Kong/kubernetes-ingress-controller","description":"Use Kong for Kubernetes Ingress","fork":false,"url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller","forks_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/forks","keys_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/teams","hooks_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/hooks","issue_events_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/events{/number}","events_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/events","assignees_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/assignees{/user}","branches_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/branches{/branch}","tags_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/tags","blobs_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/languages","stargazers_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/stargazers","contributors_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/contributors","subscribers_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/subscribers","subscription_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/subscription","commits_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/contents/{+path}","compare_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/merges","archive_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/downloads","issues_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues{/number}","pulls_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/labels{/name}","releases_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/releases{/id}","deployments_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/deployments","created_at":"2018-04-02T14:13:52Z","updated_at":"2018-10-15T21:54:00Z","pushed_at":"2018-10-16T17:42:40Z","git_url":"git://github.com/Kong/kubernetes-ingress-controller.git","ssh_url":"git@github.com:Kong/kubernetes-ingress-controller.git","clone_url":"https://github.com/Kong/kubernetes-ingress-controller.git","svn_url":"https://github.com/Kong/kubernetes-ingress-controller","homepage":"https://konghq.com/","size":9602,"stargazers_count":255,"watchers_count":255,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":10,"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":43,"open_issues":10,"watchers":255,"default_branch":"master"}},"base":{"label":"Kong:master","ref":"master","sha":"267f02304104d203463220a4f7eaee21c9927240","user":{"login":"Kong","id":962416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjQxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/962416?v=4","gravatar_id":"","url":"https://api.github.com/users/Kong","html_url":"https://github.com/Kong","followers_url":"https://api.github.com/users/Kong/followers","following_url":"https://api.github.com/users/Kong/following{/other_user}","gists_url":"https://api.github.com/users/Kong/gists{/gist_id}","starred_url":"https://api.github.com/users/Kong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kong/subscriptions","organizations_url":"https://api.github.com/users/Kong/orgs","repos_url":"https://api.github.com/users/Kong/repos","events_url":"https://api.github.com/users/Kong/events{/privacy}","received_events_url":"https://api.github.com/users/Kong/received_events","type":"Organization","site_admin":false},"repo":{"id":127765544,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc3NjU1NDQ=","name":"kubernetes-ingress-controller","full_name":"Kong/kubernetes-ingress-controller","private":false,"owner":{"login":"Kong","id":962416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjQxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/962416?v=4","gravatar_id":"","url":"https://api.github.com/users/Kong","html_url":"https://github.com/Kong","followers_url":"https://api.github.com/users/Kong/followers","following_url":"https://api.github.com/users/Kong/following{/other_user}","gists_url":"https://api.github.com/users/Kong/gists{/gist_id}","starred_url":"https://api.github.com/users/Kong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kong/subscriptions","organizations_url":"https://api.github.com/users/Kong/orgs","repos_url":"https://api.github.com/users/Kong/repos","events_url":"https://api.github.com/users/Kong/events{/privacy}","received_events_url":"https://api.github.com/users/Kong/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Kong/kubernetes-ingress-controller","description":"Use Kong for Kubernetes Ingress","fork":false,"url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller","forks_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/forks","keys_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/teams","hooks_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/hooks","issue_events_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/events{/number}","events_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/events","assignees_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/assignees{/user}","branches_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/branches{/branch}","tags_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/tags","blobs_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/languages","stargazers_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/stargazers","contributors_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/contributors","subscribers_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/subscribers","subscription_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/subscription","commits_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/contents/{+path}","compare_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/merges","archive_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/downloads","issues_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues{/number}","pulls_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/labels{/name}","releases_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/releases{/id}","deployments_url":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/deployments","created_at":"2018-04-02T14:13:52Z","updated_at":"2018-10-15T21:54:00Z","pushed_at":"2018-10-16T17:42:40Z","git_url":"git://github.com/Kong/kubernetes-ingress-controller.git","ssh_url":"git@github.com:Kong/kubernetes-ingress-controller.git","clone_url":"https://github.com/Kong/kubernetes-ingress-controller.git","svn_url":"https://github.com/Kong/kubernetes-ingress-controller","homepage":"https://konghq.com/","size":9602,"stargazers_count":255,"watchers_count":255,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":10,"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":43,"open_issues":10,"watchers":255,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/168"},"html":{"href":"https://github.com/Kong/kubernetes-ingress-controller/pull/168"},"issue":{"href":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/168"},"comments":{"href":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/Kong/kubernetes-ingress-controller/statuses/ad4ce24a77e5bfe4c4a99dd7b09098531c10a538"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":76,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"hbagdi"}}