{"action":"created","comment":{"url":"https://api.github.com/repos/giantswarm/architect/pulls/comments/118013813","pull_request_review_id":39766965,"id":118013813,"diff_hunk":"@@ -33,6 +35,64 @@ type TemplateConfiguration struct {\n \tconfiguration.Installation\n }\n \n+// TemplateHelmChart takea a filesystem, a path to a directory containing a\n+// helm chart, and a BuildInfo struct.\n+// It templates the chart's Chart.yaml and templates/deployment.yaml\n+// with this information.\n+// It is an error if there are multiple charts in the helm directory.\n+func TemplateHelmChart(fs afero.Fs, helmPath string, buildInfo BuildInfo) error {\n+\tfileInfos, err := afero.ReadDir(fs, helmPath)\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tif len(fileInfos) == 0 {\n+\t\treturn nil\n+\t}\n+\n+\tif len(fileInfos) > 1 {\n+\t\treturn fmt.Errorf(\"Multiple charts found in helm path\")","path":"template/template.go","position":30,"original_position":30,"commit_id":"797c35a4ce48d1a217e04a05179dbb6dcc9e3143","original_commit_id":"797c35a4ce48d1a217e04a05179dbb6dcc9e3143","user":{"login":"JosephSalisbury","id":297653,"avatar_url":"https://avatars2.githubusercontent.com/u/297653?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephSalisbury","html_url":"https://github.com/JosephSalisbury","followers_url":"https://api.github.com/users/JosephSalisbury/followers","following_url":"https://api.github.com/users/JosephSalisbury/following{/other_user}","gists_url":"https://api.github.com/users/JosephSalisbury/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephSalisbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephSalisbury/subscriptions","organizations_url":"https://api.github.com/users/JosephSalisbury/orgs","repos_url":"https://api.github.com/users/JosephSalisbury/repos","events_url":"https://api.github.com/users/JosephSalisbury/events{/privacy}","received_events_url":"https://api.github.com/users/JosephSalisbury/received_events","type":"User","site_admin":false},"body":"See https://github.com/giantswarm/architect/issues/34. If this is not my next PR to `architect`, you have permission to beat me <3","created_at":"2017-05-23T14:51:12Z","updated_at":"2017-05-23T14:51:12Z","html_url":"https://github.com/giantswarm/architect/pull/71#discussion_r118013813","pull_request_url":"https://api.github.com/repos/giantswarm/architect/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/giantswarm/architect/pulls/comments/118013813"},"html":{"href":"https://github.com/giantswarm/architect/pull/71#discussion_r118013813"},"pull_request":{"href":"https://api.github.com/repos/giantswarm/architect/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/giantswarm/architect/pulls/71","id":121804105,"html_url":"https://github.com/giantswarm/architect/pull/71","diff_url":"https://github.com/giantswarm/architect/pull/71.diff","patch_url":"https://github.com/giantswarm/architect/pull/71.patch","issue_url":"https://api.github.com/repos/giantswarm/architect/issues/71","number":71,"state":"open","locked":false,"title":"Adds support for pushing helm charts","user":{"login":"JosephSalisbury","id":297653,"avatar_url":"https://avatars2.githubusercontent.com/u/297653?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephSalisbury","html_url":"https://github.com/JosephSalisbury","followers_url":"https://api.github.com/users/JosephSalisbury/followers","following_url":"https://api.github.com/users/JosephSalisbury/following{/other_user}","gists_url":"https://api.github.com/users/JosephSalisbury/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephSalisbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephSalisbury/subscriptions","organizations_url":"https://api.github.com/users/JosephSalisbury/orgs","repos_url":"https://api.github.com/users/JosephSalisbury/repos","events_url":"https://api.github.com/users/JosephSalisbury/events{/privacy}","received_events_url":"https://api.github.com/users/JosephSalisbury/received_events","type":"User","site_admin":false},"body":"Towards https://github.com/giantswarm/giantswarm/issues/1253\r\n\r\n- [x] add helm commands to workflow\r\n- [x] test out helm commands\r\n- [x] template `Chart.yaml` in build\r\n- [x] test api chart build\r\n- [x] chart support docs","created_at":"2017-05-22T15:25:59Z","updated_at":"2017-05-23T14:51:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1067e96718734305f86f1d9819d7f559ad262f2","assignee":{"login":"JosephSalisbury","id":297653,"avatar_url":"https://avatars2.githubusercontent.com/u/297653?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephSalisbury","html_url":"https://github.com/JosephSalisbury","followers_url":"https://api.github.com/users/JosephSalisbury/followers","following_url":"https://api.github.com/users/JosephSalisbury/following{/other_user}","gists_url":"https://api.github.com/users/JosephSalisbury/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephSalisbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephSalisbury/subscriptions","organizations_url":"https://api.github.com/users/JosephSalisbury/orgs","repos_url":"https://api.github.com/users/JosephSalisbury/repos","events_url":"https://api.github.com/users/JosephSalisbury/events{/privacy}","received_events_url":"https://api.github.com/users/JosephSalisbury/received_events","type":"User","site_admin":false},"assignees":[{"login":"JosephSalisbury","id":297653,"avatar_url":"https://avatars2.githubusercontent.com/u/297653?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephSalisbury","html_url":"https://github.com/JosephSalisbury","followers_url":"https://api.github.com/users/JosephSalisbury/followers","following_url":"https://api.github.com/users/JosephSalisbury/following{/other_user}","gists_url":"https://api.github.com/users/JosephSalisbury/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephSalisbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephSalisbury/subscriptions","organizations_url":"https://api.github.com/users/JosephSalisbury/orgs","repos_url":"https://api.github.com/users/JosephSalisbury/repos","events_url":"https://api.github.com/users/JosephSalisbury/events{/privacy}","received_events_url":"https://api.github.com/users/JosephSalisbury/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"rossf7","id":311527,"avatar_url":"https://avatars2.githubusercontent.com/u/311527?v=3","gravatar_id":"","url":"https://api.github.com/users/rossf7","html_url":"https://github.com/rossf7","followers_url":"https://api.github.com/users/rossf7/followers","following_url":"https://api.github.com/users/rossf7/following{/other_user}","gists_url":"https://api.github.com/users/rossf7/gists{/gist_id}","starred_url":"https://api.github.com/users/rossf7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossf7/subscriptions","organizations_url":"https://api.github.com/users/rossf7/orgs","repos_url":"https://api.github.com/users/rossf7/repos","events_url":"https://api.github.com/users/rossf7/events{/privacy}","received_events_url":"https://api.github.com/users/rossf7/received_events","type":"User","site_admin":false},{"login":"kopiczko","id":4608994,"avatar_url":"https://avatars3.githubusercontent.com/u/4608994?v=3","gravatar_id":"","url":"https://api.github.com/users/kopiczko","html_url":"https://github.com/kopiczko","followers_url":"https://api.github.com/users/kopiczko/followers","following_url":"https://api.github.com/users/kopiczko/following{/other_user}","gists_url":"https://api.github.com/users/kopiczko/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiczko/subscriptions","organizations_url":"https://api.github.com/users/kopiczko/orgs","repos_url":"https://api.github.com/users/kopiczko/repos","events_url":"https://api.github.com/users/kopiczko/events{/privacy}","received_events_url":"https://api.github.com/users/kopiczko/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/giantswarm/architect/pulls/71/commits","review_comments_url":"https://api.github.com/repos/giantswarm/architect/pulls/71/comments","review_comment_url":"https://api.github.com/repos/giantswarm/architect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/giantswarm/architect/issues/71/comments","statuses_url":"https://api.github.com/repos/giantswarm/architect/statuses/797c35a4ce48d1a217e04a05179dbb6dcc9e3143","head":{"label":"giantswarm:helm","ref":"helm","sha":"797c35a4ce48d1a217e04a05179dbb6dcc9e3143","user":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars0.githubusercontent.com/u/7556340?v=3","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":78111886,"name":"architect","full_name":"giantswarm/architect","owner":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars0.githubusercontent.com/u/7556340?v=3","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/giantswarm/architect","description":"A tool for managing Giant Swarm release engineering","fork":false,"url":"https://api.github.com/repos/giantswarm/architect","forks_url":"https://api.github.com/repos/giantswarm/architect/forks","keys_url":"https://api.github.com/repos/giantswarm/architect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giantswarm/architect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giantswarm/architect/teams","hooks_url":"https://api.github.com/repos/giantswarm/architect/hooks","issue_events_url":"https://api.github.com/repos/giantswarm/architect/issues/events{/number}","events_url":"https://api.github.com/repos/giantswarm/architect/events","assignees_url":"https://api.github.com/repos/giantswarm/architect/assignees{/user}","branches_url":"https://api.github.com/repos/giantswarm/architect/branches{/branch}","tags_url":"https://api.github.com/repos/giantswarm/architect/tags","blobs_url":"https://api.github.com/repos/giantswarm/architect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giantswarm/architect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giantswarm/architect/git/refs{/sha}","trees_url":"https://api.github.com/repos/giantswarm/architect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giantswarm/architect/statuses/{sha}","languages_url":"https://api.github.com/repos/giantswarm/architect/languages","stargazers_url":"https://api.github.com/repos/giantswarm/architect/stargazers","contributors_url":"https://api.github.com/repos/giantswarm/architect/contributors","subscribers_url":"https://api.github.com/repos/giantswarm/architect/subscribers","subscription_url":"https://api.github.com/repos/giantswarm/architect/subscription","commits_url":"https://api.github.com/repos/giantswarm/architect/commits{/sha}","git_commits_url":"https://api.github.com/repos/giantswarm/architect/git/commits{/sha}","comments_url":"https://api.github.com/repos/giantswarm/architect/comments{/number}","issue_comment_url":"https://api.github.com/repos/giantswarm/architect/issues/comments{/number}","contents_url":"https://api.github.com/repos/giantswarm/architect/contents/{+path}","compare_url":"https://api.github.com/repos/giantswarm/architect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giantswarm/architect/merges","archive_url":"https://api.github.com/repos/giantswarm/architect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giantswarm/architect/downloads","issues_url":"https://api.github.com/repos/giantswarm/architect/issues{/number}","pulls_url":"https://api.github.com/repos/giantswarm/architect/pulls{/number}","milestones_url":"https://api.github.com/repos/giantswarm/architect/milestones{/number}","notifications_url":"https://api.github.com/repos/giantswarm/architect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giantswarm/architect/labels{/name}","releases_url":"https://api.github.com/repos/giantswarm/architect/releases{/id}","deployments_url":"https://api.github.com/repos/giantswarm/architect/deployments","created_at":"2017-01-05T12:40:32Z","updated_at":"2017-05-11T12:54:30Z","pushed_at":"2017-05-23T13:12:54Z","git_url":"git://github.com/giantswarm/architect.git","ssh_url":"git@github.com:giantswarm/architect.git","clone_url":"https://github.com/giantswarm/architect.git","svn_url":"https://github.com/giantswarm/architect","homepage":"https://giantswarm.io","size":4623,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"giantswarm:master","ref":"master","sha":"f56e67a409b161660e3d7cc0d5e9c5070d197381","user":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars0.githubusercontent.com/u/7556340?v=3","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":78111886,"name":"architect","full_name":"giantswarm/architect","owner":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars0.githubusercontent.com/u/7556340?v=3","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/giantswarm/architect","description":"A tool for managing Giant Swarm release engineering","fork":false,"url":"https://api.github.com/repos/giantswarm/architect","forks_url":"https://api.github.com/repos/giantswarm/architect/forks","keys_url":"https://api.github.com/repos/giantswarm/architect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giantswarm/architect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giantswarm/architect/teams","hooks_url":"https://api.github.com/repos/giantswarm/architect/hooks","issue_events_url":"https://api.github.com/repos/giantswarm/architect/issues/events{/number}","events_url":"https://api.github.com/repos/giantswarm/architect/events","assignees_url":"https://api.github.com/repos/giantswarm/architect/assignees{/user}","branches_url":"https://api.github.com/repos/giantswarm/architect/branches{/branch}","tags_url":"https://api.github.com/repos/giantswarm/architect/tags","blobs_url":"https://api.github.com/repos/giantswarm/architect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giantswarm/architect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giantswarm/architect/git/refs{/sha}","trees_url":"https://api.github.com/repos/giantswarm/architect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giantswarm/architect/statuses/{sha}","languages_url":"https://api.github.com/repos/giantswarm/architect/languages","stargazers_url":"https://api.github.com/repos/giantswarm/architect/stargazers","contributors_url":"https://api.github.com/repos/giantswarm/architect/contributors","subscribers_url":"https://api.github.com/repos/giantswarm/architect/subscribers","subscription_url":"https://api.github.com/repos/giantswarm/architect/subscription","commits_url":"https://api.github.com/repos/giantswarm/architect/commits{/sha}","git_commits_url":"https://api.github.com/repos/giantswarm/architect/git/commits{/sha}","comments_url":"https://api.github.com/repos/giantswarm/architect/comments{/number}","issue_comment_url":"https://api.github.com/repos/giantswarm/architect/issues/comments{/number}","contents_url":"https://api.github.com/repos/giantswarm/architect/contents/{+path}","compare_url":"https://api.github.com/repos/giantswarm/architect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giantswarm/architect/merges","archive_url":"https://api.github.com/repos/giantswarm/architect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giantswarm/architect/downloads","issues_url":"https://api.github.com/repos/giantswarm/architect/issues{/number}","pulls_url":"https://api.github.com/repos/giantswarm/architect/pulls{/number}","milestones_url":"https://api.github.com/repos/giantswarm/architect/milestones{/number}","notifications_url":"https://api.github.com/repos/giantswarm/architect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giantswarm/architect/labels{/name}","releases_url":"https://api.github.com/repos/giantswarm/architect/releases{/id}","deployments_url":"https://api.github.com/repos/giantswarm/architect/deployments","created_at":"2017-01-05T12:40:32Z","updated_at":"2017-05-11T12:54:30Z","pushed_at":"2017-05-23T13:12:54Z","git_url":"git://github.com/giantswarm/architect.git","ssh_url":"git@github.com:giantswarm/architect.git","clone_url":"https://github.com/giantswarm/architect.git","svn_url":"https://github.com/giantswarm/architect","homepage":"https://giantswarm.io","size":4623,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/giantswarm/architect/pulls/71"},"html":{"href":"https://github.com/giantswarm/architect/pull/71"},"issue":{"href":"https://api.github.com/repos/giantswarm/architect/issues/71"},"comments":{"href":"https://api.github.com/repos/giantswarm/architect/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/giantswarm/architect/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/giantswarm/architect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/giantswarm/architect/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/giantswarm/architect/statuses/797c35a4ce48d1a217e04a05179dbb6dcc9e3143"}}}}
{"actor":{"display_login":"JosephSalisbury"}}