{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4890","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4890/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4890/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4890/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4890","id":59200526,"number":4890,"title":"WIP: Expose secrets to containers as env vars","user":{"login":"pmorie","id":366488,"avatar_url":"https://avatars.githubusercontent.com/u/366488?v=3","gravatar_id":"","url":"https://api.github.com/users/pmorie","html_url":"https://github.com/pmorie","followers_url":"https://api.github.com/users/pmorie/followers","following_url":"https://api.github.com/users/pmorie/following{/other_user}","gists_url":"https://api.github.com/users/pmorie/gists{/gist_id}","starred_url":"https://api.github.com/users/pmorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmorie/subscriptions","organizations_url":"https://api.github.com/users/pmorie/orgs","repos_url":"https://api.github.com/users/pmorie/repos","events_url":"https://api.github.com/users/pmorie/events{/privacy}","received_events_url":"https://api.github.com/users/pmorie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/cla:%20no","name":"cla: no","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"erictune","id":8105590,"avatar_url":"https://avatars.githubusercontent.com/u/8105590?v=3","gravatar_id":"","url":"https://api.github.com/users/erictune","html_url":"https://github.com/erictune","followers_url":"https://api.github.com/users/erictune/followers","following_url":"https://api.github.com/users/erictune/following{/other_user}","gists_url":"https://api.github.com/users/erictune/gists{/gist_id}","starred_url":"https://api.github.com/users/erictune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictune/subscriptions","organizations_url":"https://api.github.com/users/erictune/orgs","repos_url":"https://api.github.com/users/erictune/repos","events_url":"https://api.github.com/users/erictune/events{/privacy}","received_events_url":"https://api.github.com/users/erictune/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-02-27T07:31:32Z","updated_at":"2015-03-09T20:21:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/4890","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4890","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4890.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4890.patch"},"body":"WIP for #4710."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/77933880","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4890#issuecomment-77933880","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4890","id":77933880,"user":{"login":"pmorie","id":366488,"avatar_url":"https://avatars.githubusercontent.com/u/366488?v=3","gravatar_id":"","url":"https://api.github.com/users/pmorie","html_url":"https://github.com/pmorie","followers_url":"https://api.github.com/users/pmorie/followers","following_url":"https://api.github.com/users/pmorie/following{/other_user}","gists_url":"https://api.github.com/users/pmorie/gists{/gist_id}","starred_url":"https://api.github.com/users/pmorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmorie/subscriptions","organizations_url":"https://api.github.com/users/pmorie/orgs","repos_url":"https://api.github.com/users/pmorie/repos","events_url":"https://api.github.com/users/pmorie/events{/privacy}","received_events_url":"https://api.github.com/users/pmorie/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T20:21:52Z","updated_at":"2015-03-09T20:21:52Z","body":"@erictune I guess if you can opt-in with a pre-start hook, that potentially solves the issue of knowing how to mutate the command just right.  What about these questions?\r\n\r\n> Other questions that came to mind:\r\n>\r\n> 1.  I believe the environment would have to be set on container create; I don't think there is a way to create a container, do a copy out of it, then mutate the env, then start. I think you would need to determine the path on the host to the file instead of reading it from the container's fs. I might be wrong on this, let me know if you know differently.\r\n> 2.  Would you be able to use this feature to populate an env-var from an arbitrary file on the host, or just ones in volumes?\r\n\r\n"}}