{"action":"created","comment":{"url":"https://api.github.com/repos/heptio/ark/pulls/comments/180984129","pull_request_review_id":111502154,"id":180984129,"diff_hunk":"@@ -53,3 +54,33 @@ func NewLogsCommand(f client.Factory) *cobra.Command {\n \n \treturn c\n }\n+\n+type LogsOptions struct {\n+\tRestoreName string\n+\tclient      arkclient.Interface\n+}\n+\n+func NewLogsOptions() *LogsOptions {\n+\treturn &LogsOptions{}\n+}\n+\n+func (l *LogsOptions) Complete(args []string) error {\n+\tl.RestoreName = args[0]\n+\treturn nil\n+}\n+\n+func (l *LogsOptions) Validate(f client.Factory) error {\n+\tclient, err := f.Client()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\tl.client = client\n+\n+\t_, err = l.client.ArkV1().Restores(f.Namespace()).Get(l.RestoreName, metav1.GetOptions{})\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\treturn nil\n+","path":"pkg/cmd/cli/restore/logs.go","position":69,"original_position":69,"commit_id":"480cd18a690a6a0b535a890ba35ec78b1179688a","original_commit_id":"480cd18a690a6a0b535a890ba35ec78b1179688a","user":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"body":"removed","created_at":"2018-04-12T07:13:46Z","updated_at":"2018-04-12T07:13:46Z","html_url":"https://github.com/heptio/ark/pull/391#discussion_r180984129","pull_request_url":"https://api.github.com/repos/heptio/ark/pulls/391","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/heptio/ark/pulls/comments/180984129"},"html":{"href":"https://github.com/heptio/ark/pull/391#discussion_r180984129"},"pull_request":{"href":"https://api.github.com/repos/heptio/ark/pulls/391"}},"in_reply_to_id":178851974},"pull_request":{"url":"https://api.github.com/repos/heptio/ark/pulls/391","id":175692586,"html_url":"https://github.com/heptio/ark/pull/391","diff_url":"https://github.com/heptio/ark/pull/391.diff","patch_url":"https://github.com/heptio/ark/pull/391.patch","issue_url":"https://api.github.com/repos/heptio/ark/issues/391","number":391,"state":"open","locked":false,"title":"Introduce validation logic to `ark restore logs`","user":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"body":"This commit introduces validation logic to `ark restore logs`\ncommand, the way it already exists in other commands like `ark\nrestore create`.\n\nBefore the logs for a restore are fetched from the server, the\nserver is contacted to check if the specified restore exists. If\nit does not, it errors out.\n\nFixes #389\n\nSigned-off-by: Shubham <shubham@linux.com>","created_at":"2018-03-17T09:41:32Z","updated_at":"2018-04-12T07:13:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2052ddd1257c5bf90ea000a491181fe8569f1f8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/heptio/ark/pulls/391/commits","review_comments_url":"https://api.github.com/repos/heptio/ark/pulls/391/comments","review_comment_url":"https://api.github.com/repos/heptio/ark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/heptio/ark/issues/391/comments","statuses_url":"https://api.github.com/repos/heptio/ark/statuses/480cd18a690a6a0b535a890ba35ec78b1179688a","head":{"label":"containscafeine:handle-restore-missing-error","ref":"handle-restore-missing-error","sha":"480cd18a690a6a0b535a890ba35ec78b1179688a","user":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"repo":{"id":125354925,"name":"ark","full_name":"containscafeine/ark","owner":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/containscafeine/ark","description":"Heptio Ark is a utility for managing disaster recovery, specifically for your Kubernetes cluster resources and persistent volumes. Brought to you by Heptio.","fork":true,"url":"https://api.github.com/repos/containscafeine/ark","forks_url":"https://api.github.com/repos/containscafeine/ark/forks","keys_url":"https://api.github.com/repos/containscafeine/ark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/containscafeine/ark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/containscafeine/ark/teams","hooks_url":"https://api.github.com/repos/containscafeine/ark/hooks","issue_events_url":"https://api.github.com/repos/containscafeine/ark/issues/events{/number}","events_url":"https://api.github.com/repos/containscafeine/ark/events","assignees_url":"https://api.github.com/repos/containscafeine/ark/assignees{/user}","branches_url":"https://api.github.com/repos/containscafeine/ark/branches{/branch}","tags_url":"https://api.github.com/repos/containscafeine/ark/tags","blobs_url":"https://api.github.com/repos/containscafeine/ark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/containscafeine/ark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/containscafeine/ark/git/refs{/sha}","trees_url":"https://api.github.com/repos/containscafeine/ark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/containscafeine/ark/statuses/{sha}","languages_url":"https://api.github.com/repos/containscafeine/ark/languages","stargazers_url":"https://api.github.com/repos/containscafeine/ark/stargazers","contributors_url":"https://api.github.com/repos/containscafeine/ark/contributors","subscribers_url":"https://api.github.com/repos/containscafeine/ark/subscribers","subscription_url":"https://api.github.com/repos/containscafeine/ark/subscription","commits_url":"https://api.github.com/repos/containscafeine/ark/commits{/sha}","git_commits_url":"https://api.github.com/repos/containscafeine/ark/git/commits{/sha}","comments_url":"https://api.github.com/repos/containscafeine/ark/comments{/number}","issue_comment_url":"https://api.github.com/repos/containscafeine/ark/issues/comments{/number}","contents_url":"https://api.github.com/repos/containscafeine/ark/contents/{+path}","compare_url":"https://api.github.com/repos/containscafeine/ark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/containscafeine/ark/merges","archive_url":"https://api.github.com/repos/containscafeine/ark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/containscafeine/ark/downloads","issues_url":"https://api.github.com/repos/containscafeine/ark/issues{/number}","pulls_url":"https://api.github.com/repos/containscafeine/ark/pulls{/number}","milestones_url":"https://api.github.com/repos/containscafeine/ark/milestones{/number}","notifications_url":"https://api.github.com/repos/containscafeine/ark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/containscafeine/ark/labels{/name}","releases_url":"https://api.github.com/repos/containscafeine/ark/releases{/id}","deployments_url":"https://api.github.com/repos/containscafeine/ark/deployments","created_at":"2018-03-15T11:06:36Z","updated_at":"2018-03-15T11:06:38Z","pushed_at":"2018-03-23T14:53:38Z","git_url":"git://github.com/containscafeine/ark.git","ssh_url":"git@github.com:containscafeine/ark.git","clone_url":"https://github.com/containscafeine/ark.git","svn_url":"https://github.com/containscafeine/ark","homepage":"https://www.heptio.com","size":8386,"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,"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"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"heptio:master","ref":"master","sha":"3063d33d713ef51e933aff55ffd1258e676159aa","user":{"login":"heptio","id":22035492,"avatar_url":"https://avatars0.githubusercontent.com/u/22035492?v=4","gravatar_id":"","url":"https://api.github.com/users/heptio","html_url":"https://github.com/heptio","followers_url":"https://api.github.com/users/heptio/followers","following_url":"https://api.github.com/users/heptio/following{/other_user}","gists_url":"https://api.github.com/users/heptio/gists{/gist_id}","starred_url":"https://api.github.com/users/heptio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heptio/subscriptions","organizations_url":"https://api.github.com/users/heptio/orgs","repos_url":"https://api.github.com/users/heptio/repos","events_url":"https://api.github.com/users/heptio/events{/privacy}","received_events_url":"https://api.github.com/users/heptio/received_events","type":"Organization","site_admin":false},"repo":{"id":99143276,"name":"ark","full_name":"heptio/ark","owner":{"login":"heptio","id":22035492,"avatar_url":"https://avatars0.githubusercontent.com/u/22035492?v=4","gravatar_id":"","url":"https://api.github.com/users/heptio","html_url":"https://github.com/heptio","followers_url":"https://api.github.com/users/heptio/followers","following_url":"https://api.github.com/users/heptio/following{/other_user}","gists_url":"https://api.github.com/users/heptio/gists{/gist_id}","starred_url":"https://api.github.com/users/heptio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heptio/subscriptions","organizations_url":"https://api.github.com/users/heptio/orgs","repos_url":"https://api.github.com/users/heptio/repos","events_url":"https://api.github.com/users/heptio/events{/privacy}","received_events_url":"https://api.github.com/users/heptio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heptio/ark","description":"Heptio Ark is a utility for managing disaster recovery, specifically for your Kubernetes cluster resources and persistent volumes. Brought to you by Heptio.","fork":false,"url":"https://api.github.com/repos/heptio/ark","forks_url":"https://api.github.com/repos/heptio/ark/forks","keys_url":"https://api.github.com/repos/heptio/ark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heptio/ark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heptio/ark/teams","hooks_url":"https://api.github.com/repos/heptio/ark/hooks","issue_events_url":"https://api.github.com/repos/heptio/ark/issues/events{/number}","events_url":"https://api.github.com/repos/heptio/ark/events","assignees_url":"https://api.github.com/repos/heptio/ark/assignees{/user}","branches_url":"https://api.github.com/repos/heptio/ark/branches{/branch}","tags_url":"https://api.github.com/repos/heptio/ark/tags","blobs_url":"https://api.github.com/repos/heptio/ark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heptio/ark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heptio/ark/git/refs{/sha}","trees_url":"https://api.github.com/repos/heptio/ark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heptio/ark/statuses/{sha}","languages_url":"https://api.github.com/repos/heptio/ark/languages","stargazers_url":"https://api.github.com/repos/heptio/ark/stargazers","contributors_url":"https://api.github.com/repos/heptio/ark/contributors","subscribers_url":"https://api.github.com/repos/heptio/ark/subscribers","subscription_url":"https://api.github.com/repos/heptio/ark/subscription","commits_url":"https://api.github.com/repos/heptio/ark/commits{/sha}","git_commits_url":"https://api.github.com/repos/heptio/ark/git/commits{/sha}","comments_url":"https://api.github.com/repos/heptio/ark/comments{/number}","issue_comment_url":"https://api.github.com/repos/heptio/ark/issues/comments{/number}","contents_url":"https://api.github.com/repos/heptio/ark/contents/{+path}","compare_url":"https://api.github.com/repos/heptio/ark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heptio/ark/merges","archive_url":"https://api.github.com/repos/heptio/ark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heptio/ark/downloads","issues_url":"https://api.github.com/repos/heptio/ark/issues{/number}","pulls_url":"https://api.github.com/repos/heptio/ark/pulls{/number}","milestones_url":"https://api.github.com/repos/heptio/ark/milestones{/number}","notifications_url":"https://api.github.com/repos/heptio/ark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heptio/ark/labels{/name}","releases_url":"https://api.github.com/repos/heptio/ark/releases{/id}","deployments_url":"https://api.github.com/repos/heptio/ark/deployments","created_at":"2017-08-02T17:22:11Z","updated_at":"2018-04-12T04:28:55Z","pushed_at":"2018-04-11T21:32:52Z","git_url":"git://github.com/heptio/ark.git","ssh_url":"git@github.com:heptio/ark.git","clone_url":"https://github.com/heptio/ark.git","svn_url":"https://github.com/heptio/ark","homepage":"https://www.heptio.com","size":8642,"stargazers_count":976,"watchers_count":976,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":123,"mirror_url":null,"archived":false,"open_issues_count":109,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":123,"open_issues":109,"watchers":976,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heptio/ark/pulls/391"},"html":{"href":"https://github.com/heptio/ark/pull/391"},"issue":{"href":"https://api.github.com/repos/heptio/ark/issues/391"},"comments":{"href":"https://api.github.com/repos/heptio/ark/issues/391/comments"},"review_comments":{"href":"https://api.github.com/repos/heptio/ark/pulls/391/comments"},"review_comment":{"href":"https://api.github.com/repos/heptio/ark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/heptio/ark/pulls/391/commits"},"statuses":{"href":"https://api.github.com/repos/heptio/ark/statuses/480cd18a690a6a0b535a890ba35ec78b1179688a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"containscafeine"}}