{"action":"created","comment":{"url":"https://api.github.com/repos/windmilleng/tilt/pulls/comments/214994428","pull_request_review_id":152164051,"id":214994428,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDk5NDQyOA==","diff_hunk":"@@ -67,6 +67,24 @@ func InjectImageDigest(entity K8sEntity, injectRef reference.Named, policy v1.Pu\n \treturn entity, replaced, nil\n }\n \n+// RemoveCommand removes the container command stanzas from a k8s entity\n+func RemoveCommand(entity K8sEntity) (K8sEntity, bool, error) {\n+\tcontainers, err := extractContainers(&entity)\n+\tif err != nil {\n+\t\treturn K8sEntity{}, false, err\n+\t}\n+\n+\treplaced := false\n+\tfor _, container := range containers {\n+\t\tif len(container.Command) > 0 {","path":"internal/k8s/image.go","position":13,"original_position":13,"commit_id":"1735370d886adf73c7523241598912cb2c96442d","original_commit_id":"1735370d886adf73c7523241598912cb2c96442d","user":{"login":"jazzdan","id":452453,"node_id":"MDQ6VXNlcjQ1MjQ1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/452453?v=4","gravatar_id":"","url":"https://api.github.com/users/jazzdan","html_url":"https://github.com/jazzdan","followers_url":"https://api.github.com/users/jazzdan/followers","following_url":"https://api.github.com/users/jazzdan/following{/other_user}","gists_url":"https://api.github.com/users/jazzdan/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzdan/subscriptions","organizations_url":"https://api.github.com/users/jazzdan/orgs","repos_url":"https://api.github.com/users/jazzdan/repos","events_url":"https://api.github.com/users/jazzdan/events{/privacy}","received_events_url":"https://api.github.com/users/jazzdan/received_events","type":"User","site_admin":false},"body":"good catch!","created_at":"2018-09-04T17:06:56Z","updated_at":"2018-09-04T17:06:56Z","html_url":"https://github.com/windmilleng/tilt/pull/244#discussion_r214994428","pull_request_url":"https://api.github.com/repos/windmilleng/tilt/pulls/244","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/windmilleng/tilt/pulls/comments/214994428"},"html":{"href":"https://github.com/windmilleng/tilt/pull/244#discussion_r214994428"},"pull_request":{"href":"https://api.github.com/repos/windmilleng/tilt/pulls/244"}},"in_reply_to_id":214981531},"pull_request":{"url":"https://api.github.com/repos/windmilleng/tilt/pulls/244","id":213015819,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMDE1ODE5","html_url":"https://github.com/windmilleng/tilt/pull/244","diff_url":"https://github.com/windmilleng/tilt/pull/244.diff","patch_url":"https://github.com/windmilleng/tilt/pull/244.patch","issue_url":"https://api.github.com/repos/windmilleng/tilt/issues/244","number":244,"state":"open","locked":false,"title":"k8s: remove command from containers [ch120]","user":{"login":"jazzdan","id":452453,"node_id":"MDQ6VXNlcjQ1MjQ1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/452453?v=4","gravatar_id":"","url":"https://api.github.com/users/jazzdan","html_url":"https://github.com/jazzdan","followers_url":"https://api.github.com/users/jazzdan/followers","following_url":"https://api.github.com/users/jazzdan/following{/other_user}","gists_url":"https://api.github.com/users/jazzdan/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzdan/subscriptions","organizations_url":"https://api.github.com/users/jazzdan/orgs","repos_url":"https://api.github.com/users/jazzdan/repos","events_url":"https://api.github.com/users/jazzdan/events{/privacy}","received_events_url":"https://api.github.com/users/jazzdan/received_events","type":"User","site_admin":false},"body":"(if this is the way we want to go)","created_at":"2018-09-04T15:23:52Z","updated_at":"2018-09-04T17:06:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa2f66d1fb1937b16bb357a04e2fddd8560bbc65","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/windmilleng/tilt/pulls/244/commits","review_comments_url":"https://api.github.com/repos/windmilleng/tilt/pulls/244/comments","review_comment_url":"https://api.github.com/repos/windmilleng/tilt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/windmilleng/tilt/issues/244/comments","statuses_url":"https://api.github.com/repos/windmilleng/tilt/statuses/1735370d886adf73c7523241598912cb2c96442d","head":{"label":"windmilleng:dmiller/ch120/reconcile-entrypoint-in-tiltfile-and-k8s","ref":"dmiller/ch120/reconcile-entrypoint-in-tiltfile-and-k8s","sha":"1735370d886adf73c7523241598912cb2c96442d","user":{"login":"windmilleng","id":26349925,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MzQ5OTI1","avatar_url":"https://avatars0.githubusercontent.com/u/26349925?v=4","gravatar_id":"","url":"https://api.github.com/users/windmilleng","html_url":"https://github.com/windmilleng","followers_url":"https://api.github.com/users/windmilleng/followers","following_url":"https://api.github.com/users/windmilleng/following{/other_user}","gists_url":"https://api.github.com/users/windmilleng/gists{/gist_id}","starred_url":"https://api.github.com/users/windmilleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windmilleng/subscriptions","organizations_url":"https://api.github.com/users/windmilleng/orgs","repos_url":"https://api.github.com/users/windmilleng/repos","events_url":"https://api.github.com/users/windmilleng/events{/privacy}","received_events_url":"https://api.github.com/users/windmilleng/received_events","type":"Organization","site_admin":false},"repo":{"id":143896900,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM4OTY5MDA=","name":"tilt","full_name":"windmilleng/tilt","owner":{"login":"windmilleng","id":26349925,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MzQ5OTI1","avatar_url":"https://avatars0.githubusercontent.com/u/26349925?v=4","gravatar_id":"","url":"https://api.github.com/users/windmilleng","html_url":"https://github.com/windmilleng","followers_url":"https://api.github.com/users/windmilleng/followers","following_url":"https://api.github.com/users/windmilleng/following{/other_user}","gists_url":"https://api.github.com/users/windmilleng/gists{/gist_id}","starred_url":"https://api.github.com/users/windmilleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windmilleng/subscriptions","organizations_url":"https://api.github.com/users/windmilleng/orgs","repos_url":"https://api.github.com/users/windmilleng/repos","events_url":"https://api.github.com/users/windmilleng/events{/privacy}","received_events_url":"https://api.github.com/users/windmilleng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/windmilleng/tilt","description":"kubernetes development for the impatient","fork":false,"url":"https://api.github.com/repos/windmilleng/tilt","forks_url":"https://api.github.com/repos/windmilleng/tilt/forks","keys_url":"https://api.github.com/repos/windmilleng/tilt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/windmilleng/tilt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/windmilleng/tilt/teams","hooks_url":"https://api.github.com/repos/windmilleng/tilt/hooks","issue_events_url":"https://api.github.com/repos/windmilleng/tilt/issues/events{/number}","events_url":"https://api.github.com/repos/windmilleng/tilt/events","assignees_url":"https://api.github.com/repos/windmilleng/tilt/assignees{/user}","branches_url":"https://api.github.com/repos/windmilleng/tilt/branches{/branch}","tags_url":"https://api.github.com/repos/windmilleng/tilt/tags","blobs_url":"https://api.github.com/repos/windmilleng/tilt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/windmilleng/tilt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/windmilleng/tilt/git/refs{/sha}","trees_url":"https://api.github.com/repos/windmilleng/tilt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/windmilleng/tilt/statuses/{sha}","languages_url":"https://api.github.com/repos/windmilleng/tilt/languages","stargazers_url":"https://api.github.com/repos/windmilleng/tilt/stargazers","contributors_url":"https://api.github.com/repos/windmilleng/tilt/contributors","subscribers_url":"https://api.github.com/repos/windmilleng/tilt/subscribers","subscription_url":"https://api.github.com/repos/windmilleng/tilt/subscription","commits_url":"https://api.github.com/repos/windmilleng/tilt/commits{/sha}","git_commits_url":"https://api.github.com/repos/windmilleng/tilt/git/commits{/sha}","comments_url":"https://api.github.com/repos/windmilleng/tilt/comments{/number}","issue_comment_url":"https://api.github.com/repos/windmilleng/tilt/issues/comments{/number}","contents_url":"https://api.github.com/repos/windmilleng/tilt/contents/{+path}","compare_url":"https://api.github.com/repos/windmilleng/tilt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/windmilleng/tilt/merges","archive_url":"https://api.github.com/repos/windmilleng/tilt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/windmilleng/tilt/downloads","issues_url":"https://api.github.com/repos/windmilleng/tilt/issues{/number}","pulls_url":"https://api.github.com/repos/windmilleng/tilt/pulls{/number}","milestones_url":"https://api.github.com/repos/windmilleng/tilt/milestones{/number}","notifications_url":"https://api.github.com/repos/windmilleng/tilt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/windmilleng/tilt/labels{/name}","releases_url":"https://api.github.com/repos/windmilleng/tilt/releases{/id}","deployments_url":"https://api.github.com/repos/windmilleng/tilt/deployments","created_at":"2018-08-07T16:00:26Z","updated_at":"2018-09-04T16:24:04Z","pushed_at":"2018-09-04T16:24:04Z","git_url":"git://github.com/windmilleng/tilt.git","ssh_url":"git@github.com:windmilleng/tilt.git","clone_url":"https://github.com/windmilleng/tilt.git","svn_url":"https://github.com/windmilleng/tilt","homepage":"","size":7002,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"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":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"windmilleng:master","ref":"master","sha":"cfbb725c8506203c807822f2919caf9ad7271b34","user":{"login":"windmilleng","id":26349925,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MzQ5OTI1","avatar_url":"https://avatars0.githubusercontent.com/u/26349925?v=4","gravatar_id":"","url":"https://api.github.com/users/windmilleng","html_url":"https://github.com/windmilleng","followers_url":"https://api.github.com/users/windmilleng/followers","following_url":"https://api.github.com/users/windmilleng/following{/other_user}","gists_url":"https://api.github.com/users/windmilleng/gists{/gist_id}","starred_url":"https://api.github.com/users/windmilleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windmilleng/subscriptions","organizations_url":"https://api.github.com/users/windmilleng/orgs","repos_url":"https://api.github.com/users/windmilleng/repos","events_url":"https://api.github.com/users/windmilleng/events{/privacy}","received_events_url":"https://api.github.com/users/windmilleng/received_events","type":"Organization","site_admin":false},"repo":{"id":143896900,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM4OTY5MDA=","name":"tilt","full_name":"windmilleng/tilt","owner":{"login":"windmilleng","id":26349925,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MzQ5OTI1","avatar_url":"https://avatars0.githubusercontent.com/u/26349925?v=4","gravatar_id":"","url":"https://api.github.com/users/windmilleng","html_url":"https://github.com/windmilleng","followers_url":"https://api.github.com/users/windmilleng/followers","following_url":"https://api.github.com/users/windmilleng/following{/other_user}","gists_url":"https://api.github.com/users/windmilleng/gists{/gist_id}","starred_url":"https://api.github.com/users/windmilleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windmilleng/subscriptions","organizations_url":"https://api.github.com/users/windmilleng/orgs","repos_url":"https://api.github.com/users/windmilleng/repos","events_url":"https://api.github.com/users/windmilleng/events{/privacy}","received_events_url":"https://api.github.com/users/windmilleng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/windmilleng/tilt","description":"kubernetes development for the impatient","fork":false,"url":"https://api.github.com/repos/windmilleng/tilt","forks_url":"https://api.github.com/repos/windmilleng/tilt/forks","keys_url":"https://api.github.com/repos/windmilleng/tilt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/windmilleng/tilt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/windmilleng/tilt/teams","hooks_url":"https://api.github.com/repos/windmilleng/tilt/hooks","issue_events_url":"https://api.github.com/repos/windmilleng/tilt/issues/events{/number}","events_url":"https://api.github.com/repos/windmilleng/tilt/events","assignees_url":"https://api.github.com/repos/windmilleng/tilt/assignees{/user}","branches_url":"https://api.github.com/repos/windmilleng/tilt/branches{/branch}","tags_url":"https://api.github.com/repos/windmilleng/tilt/tags","blobs_url":"https://api.github.com/repos/windmilleng/tilt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/windmilleng/tilt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/windmilleng/tilt/git/refs{/sha}","trees_url":"https://api.github.com/repos/windmilleng/tilt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/windmilleng/tilt/statuses/{sha}","languages_url":"https://api.github.com/repos/windmilleng/tilt/languages","stargazers_url":"https://api.github.com/repos/windmilleng/tilt/stargazers","contributors_url":"https://api.github.com/repos/windmilleng/tilt/contributors","subscribers_url":"https://api.github.com/repos/windmilleng/tilt/subscribers","subscription_url":"https://api.github.com/repos/windmilleng/tilt/subscription","commits_url":"https://api.github.com/repos/windmilleng/tilt/commits{/sha}","git_commits_url":"https://api.github.com/repos/windmilleng/tilt/git/commits{/sha}","comments_url":"https://api.github.com/repos/windmilleng/tilt/comments{/number}","issue_comment_url":"https://api.github.com/repos/windmilleng/tilt/issues/comments{/number}","contents_url":"https://api.github.com/repos/windmilleng/tilt/contents/{+path}","compare_url":"https://api.github.com/repos/windmilleng/tilt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/windmilleng/tilt/merges","archive_url":"https://api.github.com/repos/windmilleng/tilt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/windmilleng/tilt/downloads","issues_url":"https://api.github.com/repos/windmilleng/tilt/issues{/number}","pulls_url":"https://api.github.com/repos/windmilleng/tilt/pulls{/number}","milestones_url":"https://api.github.com/repos/windmilleng/tilt/milestones{/number}","notifications_url":"https://api.github.com/repos/windmilleng/tilt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/windmilleng/tilt/labels{/name}","releases_url":"https://api.github.com/repos/windmilleng/tilt/releases{/id}","deployments_url":"https://api.github.com/repos/windmilleng/tilt/deployments","created_at":"2018-08-07T16:00:26Z","updated_at":"2018-09-04T16:24:04Z","pushed_at":"2018-09-04T16:24:04Z","git_url":"git://github.com/windmilleng/tilt.git","ssh_url":"git@github.com:windmilleng/tilt.git","clone_url":"https://github.com/windmilleng/tilt.git","svn_url":"https://github.com/windmilleng/tilt","homepage":"","size":7002,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"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":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/windmilleng/tilt/pulls/244"},"html":{"href":"https://github.com/windmilleng/tilt/pull/244"},"issue":{"href":"https://api.github.com/repos/windmilleng/tilt/issues/244"},"comments":{"href":"https://api.github.com/repos/windmilleng/tilt/issues/244/comments"},"review_comments":{"href":"https://api.github.com/repos/windmilleng/tilt/pulls/244/comments"},"review_comment":{"href":"https://api.github.com/repos/windmilleng/tilt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/windmilleng/tilt/pulls/244/commits"},"statuses":{"href":"https://api.github.com/repos/windmilleng/tilt/statuses/1735370d886adf73c7523241598912cb2c96442d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jazzdan"}}