{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7365","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7365/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7365/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7365/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/7365","id":71340724,"number":7365,"title":"Downward API for service environment 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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T16:47:42Z","updated_at":"2015-04-27T16:47:42Z","closed_at":null,"body":"Forking from discussion on #6739\r\n\r\nWe should be able to set environment vars for service information using the downward API mechanism from #6739.  Since services are not local to the object, we need a way to specify them in the API.  How about:\r\n\r\n```go\r\ntype EnvVarSource struct {\r\n  FieldPath        *ObjectFieldSelector\r\n  ServiceFieldPath *NamedObjectFieldSelector\r\n}\r\n\r\ntype NamedObjectFieldSelector {\r\n\tObjectFieldSelector\r\n\r\n\tName string\r\n}\r\n```\r\n\r\nThis will definitely lurch us closer to a full `ObjectReference`.\r\n\r\n@thockin @bgrant0607 @smarterclayton"}}