{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/comments/199503905","pull_request_review_id":133634013,"id":199503905,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTUwMzkwNQ==","diff_hunk":"@@ -0,0 +1,32 @@\n+#!/usr/bin/env bash\n+\n+# Generic script that sets the image+tag of a container in a deployment's pod spec in user namespaces\n+# As is.  Will set deployment's \"r-studio-server\" container's image tag to \"v1.3.2\" in all user namespaces\n+\n+set -e\n+\n+DRY_RUN=true\n+\n+while true; do","path":"scripts/set_deployment_image_tag.sh","position":10,"original_position":10,"commit_id":"4f9f51d4ca59b5ecc5c40cc6b6d2ab516fe0ca6f","original_commit_id":"4f9f51d4ca59b5ecc5c40cc6b6d2ab516fe0ca6f","user":{"login":"r4vi","id":565628,"node_id":"MDQ6VXNlcjU2NTYyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/565628?v=4","gravatar_id":"","url":"https://api.github.com/users/r4vi","html_url":"https://github.com/r4vi","followers_url":"https://api.github.com/users/r4vi/followers","following_url":"https://api.github.com/users/r4vi/following{/other_user}","gists_url":"https://api.github.com/users/r4vi/gists{/gist_id}","starred_url":"https://api.github.com/users/r4vi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r4vi/subscriptions","organizations_url":"https://api.github.com/users/r4vi/orgs","repos_url":"https://api.github.com/users/r4vi/repos","events_url":"https://api.github.com/users/r4vi/events{/privacy}","received_events_url":"https://api.github.com/users/r4vi/received_events","type":"User","site_admin":false},"body":"yeah it's a bit too fancy, I actually prefer this `while true` but I guess you can do `--timeout 5` instead of sleep, but timeout always exits with code 255","created_at":"2018-07-02T13:51:27Z","updated_at":"2018-07-02T13:51:27Z","html_url":"https://github.com/ministryofjustice/analytics-platform-ops/pull/135#discussion_r199503905","pull_request_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/comments/199503905"},"html":{"href":"https://github.com/ministryofjustice/analytics-platform-ops/pull/135#discussion_r199503905"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135"}},"in_reply_to_id":185447031},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135","id":184910256,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg0OTEwMjU2","html_url":"https://github.com/ministryofjustice/analytics-platform-ops/pull/135","diff_url":"https://github.com/ministryofjustice/analytics-platform-ops/pull/135.diff","patch_url":"https://github.com/ministryofjustice/analytics-platform-ops/pull/135.patch","issue_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/135","number":135,"state":"open","locked":false,"title":"Set Image Tag","user":{"login":"djsd123","id":8365097,"node_id":"MDQ6VXNlcjgzNjUwOTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8365097?v=4","gravatar_id":"","url":"https://api.github.com/users/djsd123","html_url":"https://github.com/djsd123","followers_url":"https://api.github.com/users/djsd123/followers","following_url":"https://api.github.com/users/djsd123/following{/other_user}","gists_url":"https://api.github.com/users/djsd123/gists{/gist_id}","starred_url":"https://api.github.com/users/djsd123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djsd123/subscriptions","organizations_url":"https://api.github.com/users/djsd123/orgs","repos_url":"https://api.github.com/users/djsd123/repos","events_url":"https://api.github.com/users/djsd123/events{/privacy}","received_events_url":"https://api.github.com/users/djsd123/received_events","type":"User","site_admin":false},"body":"## What\r\n\r\nScript to modify image tags.  Useful for rolling out\r\nversions or just serving as an example. As is will perform the migration on\r\nrstudio.\r\n\r\nGated with `dry-run` flag for no-op runs to what will be changed if\r\nrun.\r\n\r\nTitle the PR to complete the sentence: \"Merging this PR will ...\"\r\n\r\n## How to review\r\n\r\nExecute the script and answer `y` to invoke a dry run. You will see output for deployments that will be affected. i.e. __Does not match __ the image defined in the script.\r\n\r\nIn dev, that will be my deployment\r\n","created_at":"2018-04-30T09:19:01Z","updated_at":"2018-07-02T13:51:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbc252984c68396b3e7dc0546747a1c9fab384d9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/135/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/statuses/4f9f51d4ca59b5ecc5c40cc6b6d2ab516fe0ca6f","head":{"label":"ministryofjustice:set-image-script","ref":"set-image-script","sha":"4f9f51d4ca59b5ecc5c40cc6b6d2ab516fe0ca6f","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":77397761,"node_id":"MDEwOlJlcG9zaXRvcnk3NzM5Nzc2MQ==","name":"analytics-platform-ops","full_name":"ministryofjustice/analytics-platform-ops","owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/analytics-platform-ops","description":"Ops and deployment resources for MOJ Analytics platform","fork":false,"url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops","forks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/forks","keys_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/events","assignees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/merges","archive_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/deployments","created_at":"2016-12-26T17:27:30Z","updated_at":"2018-07-02T11:20:42Z","pushed_at":"2018-07-02T13:49:34Z","git_url":"git://github.com/ministryofjustice/analytics-platform-ops.git","ssh_url":"git@github.com:ministryofjustice/analytics-platform-ops.git","clone_url":"https://github.com/ministryofjustice/analytics-platform-ops.git","svn_url":"https://github.com/ministryofjustice/analytics-platform-ops","homepage":"","size":1931,"stargazers_count":9,"watchers_count":9,"language":"Python","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":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":9,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"46b0372dd42933257723c3a480a9a0507efd8e94","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":77397761,"node_id":"MDEwOlJlcG9zaXRvcnk3NzM5Nzc2MQ==","name":"analytics-platform-ops","full_name":"ministryofjustice/analytics-platform-ops","owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/analytics-platform-ops","description":"Ops and deployment resources for MOJ Analytics platform","fork":false,"url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops","forks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/forks","keys_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/events","assignees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/merges","archive_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/deployments","created_at":"2016-12-26T17:27:30Z","updated_at":"2018-07-02T11:20:42Z","pushed_at":"2018-07-02T13:49:34Z","git_url":"git://github.com/ministryofjustice/analytics-platform-ops.git","ssh_url":"git@github.com:ministryofjustice/analytics-platform-ops.git","clone_url":"https://github.com/ministryofjustice/analytics-platform-ops.git","svn_url":"https://github.com/ministryofjustice/analytics-platform-ops","homepage":"","size":1931,"stargazers_count":9,"watchers_count":9,"language":"Python","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":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135"},"html":{"href":"https://github.com/ministryofjustice/analytics-platform-ops/pull/135"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/135"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-ops/statuses/4f9f51d4ca59b5ecc5c40cc6b6d2ab516fe0ca6f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"r4vi"}}