{"action":"created","comment":{"url":"https://api.github.com/repos/gravitational/logging-app/pulls/comments/90084256","pull_request_review_id":10608966,"id":90084256,"diff_hunk":"@@ -0,0 +1,17 @@\n+#!/usr/bin/dumb-init /bin/sh\n+set -e\n+\n+if [ $1 = \"update\" ]; then\n+    echo \"Starting update, changeset: $RIG_CHANGESET\"\n+    echo \"Deleting old replication controller rc/log-forwarder\"\n+    rig delete rc/log-collector --resource-namespace=kube-system\n+    echo \"Creating or updating resources\"\n+    rig upsert -f /var/lib/gravity/resources/resources.yaml --debug\n+    echo \"Checking status\"\n+    rig status $RIG_CHANGESET --retry-attempts=120 --retry-period=1s --debug\n+    echo \"Freezing\"\n+    rig freeze\n+else","path":"images/hook/entrypoint.sh","position":14,"original_position":14,"commit_id":"7868df24fef13f6a7275f6f9a47b53814183f79f","original_commit_id":"7868df24fef13f6a7275f6f9a47b53814183f79f","user":{"login":"sofuture","id":66669,"avatar_url":"https://avatars.githubusercontent.com/u/66669?v=3","gravatar_id":"","url":"https://api.github.com/users/sofuture","html_url":"https://github.com/sofuture","followers_url":"https://api.github.com/users/sofuture/followers","following_url":"https://api.github.com/users/sofuture/following{/other_user}","gists_url":"https://api.github.com/users/sofuture/gists{/gist_id}","starred_url":"https://api.github.com/users/sofuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofuture/subscriptions","organizations_url":"https://api.github.com/users/sofuture/orgs","repos_url":"https://api.github.com/users/sofuture/repos","events_url":"https://api.github.com/users/sofuture/events{/privacy}","received_events_url":"https://api.github.com/users/sofuture/received_events","type":"User","site_admin":false},"body":"does this work as intended? it reads weird -- is it supposed to happen on subsequent run after failure of first run?","created_at":"2016-11-29T19:08:22Z","updated_at":"2016-11-29T19:09:45Z","html_url":"https://github.com/gravitational/logging-app/pull/26#discussion_r90084256","pull_request_url":"https://api.github.com/repos/gravitational/logging-app/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/gravitational/logging-app/pulls/comments/90084256"},"html":{"href":"https://github.com/gravitational/logging-app/pull/26#discussion_r90084256"},"pull_request":{"href":"https://api.github.com/repos/gravitational/logging-app/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/gravitational/logging-app/pulls/26","id":95622969,"html_url":"https://github.com/gravitational/logging-app/pull/26","diff_url":"https://github.com/gravitational/logging-app/pull/26.diff","patch_url":"https://github.com/gravitational/logging-app/pull/26.patch","issue_url":"https://api.github.com/repos/gravitational/logging-app/issues/26","number":26,"state":"open","locked":false,"title":"WIP: add update resources using rig","user":{"login":"klizhentas","id":13717,"avatar_url":"https://avatars.githubusercontent.com/u/13717?v=3","gravatar_id":"","url":"https://api.github.com/users/klizhentas","html_url":"https://github.com/klizhentas","followers_url":"https://api.github.com/users/klizhentas/followers","following_url":"https://api.github.com/users/klizhentas/following{/other_user}","gists_url":"https://api.github.com/users/klizhentas/gists{/gist_id}","starred_url":"https://api.github.com/users/klizhentas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klizhentas/subscriptions","organizations_url":"https://api.github.com/users/klizhentas/orgs","repos_url":"https://api.github.com/users/klizhentas/repos","events_url":"https://api.github.com/users/klizhentas/events{/privacy}","received_events_url":"https://api.github.com/users/klizhentas/received_events","type":"User","site_admin":false},"body":"Please do not merge yet, as I'm still working on rollback.\r\n\r\nThis PR adds update hook using rig for changeset management","created_at":"2016-11-29T04:01:56Z","updated_at":"2016-11-29T19:09:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ff7d2d0446dfd24539aafdc377fe8d7b881402e","assignee":{"login":"sofuture","id":66669,"avatar_url":"https://avatars.githubusercontent.com/u/66669?v=3","gravatar_id":"","url":"https://api.github.com/users/sofuture","html_url":"https://github.com/sofuture","followers_url":"https://api.github.com/users/sofuture/followers","following_url":"https://api.github.com/users/sofuture/following{/other_user}","gists_url":"https://api.github.com/users/sofuture/gists{/gist_id}","starred_url":"https://api.github.com/users/sofuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofuture/subscriptions","organizations_url":"https://api.github.com/users/sofuture/orgs","repos_url":"https://api.github.com/users/sofuture/repos","events_url":"https://api.github.com/users/sofuture/events{/privacy}","received_events_url":"https://api.github.com/users/sofuture/received_events","type":"User","site_admin":false},"assignees":[{"login":"sofuture","id":66669,"avatar_url":"https://avatars.githubusercontent.com/u/66669?v=3","gravatar_id":"","url":"https://api.github.com/users/sofuture","html_url":"https://github.com/sofuture","followers_url":"https://api.github.com/users/sofuture/followers","following_url":"https://api.github.com/users/sofuture/following{/other_user}","gists_url":"https://api.github.com/users/sofuture/gists{/gist_id}","starred_url":"https://api.github.com/users/sofuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofuture/subscriptions","organizations_url":"https://api.github.com/users/sofuture/orgs","repos_url":"https://api.github.com/users/sofuture/repos","events_url":"https://api.github.com/users/sofuture/events{/privacy}","received_events_url":"https://api.github.com/users/sofuture/received_events","type":"User","site_admin":false},{"login":"a-palchikov","id":965809,"avatar_url":"https://avatars.githubusercontent.com/u/965809?v=3","gravatar_id":"","url":"https://api.github.com/users/a-palchikov","html_url":"https://github.com/a-palchikov","followers_url":"https://api.github.com/users/a-palchikov/followers","following_url":"https://api.github.com/users/a-palchikov/following{/other_user}","gists_url":"https://api.github.com/users/a-palchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/a-palchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-palchikov/subscriptions","organizations_url":"https://api.github.com/users/a-palchikov/orgs","repos_url":"https://api.github.com/users/a-palchikov/repos","events_url":"https://api.github.com/users/a-palchikov/events{/privacy}","received_events_url":"https://api.github.com/users/a-palchikov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/gravitational/logging-app/pulls/26/commits","review_comments_url":"https://api.github.com/repos/gravitational/logging-app/pulls/26/comments","review_comment_url":"https://api.github.com/repos/gravitational/logging-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gravitational/logging-app/issues/26/comments","statuses_url":"https://api.github.com/repos/gravitational/logging-app/statuses/7868df24fef13f6a7275f6f9a47b53814183f79f","head":{"label":"gravitational:sasha/update","ref":"sasha/update","sha":"7868df24fef13f6a7275f6f9a47b53814183f79f","user":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"repo":{"id":61620959,"name":"logging-app","full_name":"gravitational/logging-app","owner":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gravitational/logging-app","description":"This gravity app provides an rsyslog-based log collection system to gravity sites.","fork":false,"url":"https://api.github.com/repos/gravitational/logging-app","forks_url":"https://api.github.com/repos/gravitational/logging-app/forks","keys_url":"https://api.github.com/repos/gravitational/logging-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravitational/logging-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravitational/logging-app/teams","hooks_url":"https://api.github.com/repos/gravitational/logging-app/hooks","issue_events_url":"https://api.github.com/repos/gravitational/logging-app/issues/events{/number}","events_url":"https://api.github.com/repos/gravitational/logging-app/events","assignees_url":"https://api.github.com/repos/gravitational/logging-app/assignees{/user}","branches_url":"https://api.github.com/repos/gravitational/logging-app/branches{/branch}","tags_url":"https://api.github.com/repos/gravitational/logging-app/tags","blobs_url":"https://api.github.com/repos/gravitational/logging-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravitational/logging-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravitational/logging-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravitational/logging-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravitational/logging-app/statuses/{sha}","languages_url":"https://api.github.com/repos/gravitational/logging-app/languages","stargazers_url":"https://api.github.com/repos/gravitational/logging-app/stargazers","contributors_url":"https://api.github.com/repos/gravitational/logging-app/contributors","subscribers_url":"https://api.github.com/repos/gravitational/logging-app/subscribers","subscription_url":"https://api.github.com/repos/gravitational/logging-app/subscription","commits_url":"https://api.github.com/repos/gravitational/logging-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravitational/logging-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravitational/logging-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravitational/logging-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravitational/logging-app/contents/{+path}","compare_url":"https://api.github.com/repos/gravitational/logging-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravitational/logging-app/merges","archive_url":"https://api.github.com/repos/gravitational/logging-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravitational/logging-app/downloads","issues_url":"https://api.github.com/repos/gravitational/logging-app/issues{/number}","pulls_url":"https://api.github.com/repos/gravitational/logging-app/pulls{/number}","milestones_url":"https://api.github.com/repos/gravitational/logging-app/milestones{/number}","notifications_url":"https://api.github.com/repos/gravitational/logging-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravitational/logging-app/labels{/name}","releases_url":"https://api.github.com/repos/gravitational/logging-app/releases{/id}","deployments_url":"https://api.github.com/repos/gravitational/logging-app/deployments","created_at":"2016-06-21T09:32:50Z","updated_at":"2016-11-01T15:31:30Z","pushed_at":"2016-11-29T04:01:56Z","git_url":"git://github.com/gravitational/logging-app.git","ssh_url":"git@github.com:gravitational/logging-app.git","clone_url":"https://github.com/gravitational/logging-app.git","svn_url":"https://github.com/gravitational/logging-app","homepage":null,"size":2546,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"gravitational:master","ref":"master","sha":"123c7550122ce48729950a09452dd190dba94c90","user":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"repo":{"id":61620959,"name":"logging-app","full_name":"gravitational/logging-app","owner":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gravitational/logging-app","description":"This gravity app provides an rsyslog-based log collection system to gravity sites.","fork":false,"url":"https://api.github.com/repos/gravitational/logging-app","forks_url":"https://api.github.com/repos/gravitational/logging-app/forks","keys_url":"https://api.github.com/repos/gravitational/logging-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravitational/logging-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravitational/logging-app/teams","hooks_url":"https://api.github.com/repos/gravitational/logging-app/hooks","issue_events_url":"https://api.github.com/repos/gravitational/logging-app/issues/events{/number}","events_url":"https://api.github.com/repos/gravitational/logging-app/events","assignees_url":"https://api.github.com/repos/gravitational/logging-app/assignees{/user}","branches_url":"https://api.github.com/repos/gravitational/logging-app/branches{/branch}","tags_url":"https://api.github.com/repos/gravitational/logging-app/tags","blobs_url":"https://api.github.com/repos/gravitational/logging-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravitational/logging-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravitational/logging-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravitational/logging-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravitational/logging-app/statuses/{sha}","languages_url":"https://api.github.com/repos/gravitational/logging-app/languages","stargazers_url":"https://api.github.com/repos/gravitational/logging-app/stargazers","contributors_url":"https://api.github.com/repos/gravitational/logging-app/contributors","subscribers_url":"https://api.github.com/repos/gravitational/logging-app/subscribers","subscription_url":"https://api.github.com/repos/gravitational/logging-app/subscription","commits_url":"https://api.github.com/repos/gravitational/logging-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravitational/logging-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravitational/logging-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravitational/logging-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravitational/logging-app/contents/{+path}","compare_url":"https://api.github.com/repos/gravitational/logging-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravitational/logging-app/merges","archive_url":"https://api.github.com/repos/gravitational/logging-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravitational/logging-app/downloads","issues_url":"https://api.github.com/repos/gravitational/logging-app/issues{/number}","pulls_url":"https://api.github.com/repos/gravitational/logging-app/pulls{/number}","milestones_url":"https://api.github.com/repos/gravitational/logging-app/milestones{/number}","notifications_url":"https://api.github.com/repos/gravitational/logging-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravitational/logging-app/labels{/name}","releases_url":"https://api.github.com/repos/gravitational/logging-app/releases{/id}","deployments_url":"https://api.github.com/repos/gravitational/logging-app/deployments","created_at":"2016-06-21T09:32:50Z","updated_at":"2016-11-01T15:31:30Z","pushed_at":"2016-11-29T04:01:56Z","git_url":"git://github.com/gravitational/logging-app.git","ssh_url":"git@github.com:gravitational/logging-app.git","clone_url":"https://github.com/gravitational/logging-app.git","svn_url":"https://github.com/gravitational/logging-app","homepage":null,"size":2546,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gravitational/logging-app/pulls/26"},"html":{"href":"https://github.com/gravitational/logging-app/pull/26"},"issue":{"href":"https://api.github.com/repos/gravitational/logging-app/issues/26"},"comments":{"href":"https://api.github.com/repos/gravitational/logging-app/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/gravitational/logging-app/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/gravitational/logging-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gravitational/logging-app/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/gravitational/logging-app/statuses/7868df24fef13f6a7275f6f9a47b53814183f79f"}}}}
{"actor":{"display_login":"sofuture"}}