{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48069","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48069/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48069/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48069/events","html_url":"https://github.com/kubernetes/kubernetes/issues/48069","id":238563315,"number":48069,"title":"Environment variables are not re-interpolated when re-applying deployment","user":{"login":"tadas-subonis","id":247218,"avatar_url":"https://avatars1.githubusercontent.com/u/247218?v=3","gravatar_id":"","url":"https://api.github.com/users/tadas-subonis","html_url":"https://github.com/tadas-subonis","followers_url":"https://api.github.com/users/tadas-subonis/followers","following_url":"https://api.github.com/users/tadas-subonis/following{/other_user}","gists_url":"https://api.github.com/users/tadas-subonis/gists{/gist_id}","starred_url":"https://api.github.com/users/tadas-subonis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadas-subonis/subscriptions","organizations_url":"https://api.github.com/users/tadas-subonis/orgs","repos_url":"https://api.github.com/users/tadas-subonis/repos","events_url":"https://api.github.com/users/tadas-subonis/events{/privacy}","received_events_url":"https://api.github.com/users/tadas-subonis/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-26T14:34:51Z","updated_at":"2017-06-26T14:34:51Z","closed_at":null,"body":"/kind bug\r\n\r\n\r\n\r\n**What happened**:\r\nThe environment variables were not interpolated \r\n**What you expected to happen**:\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\ncreate environment variable like this\r\n```\r\n            - name: REDIS_URL\r\n              value: redis://:$(REDIS_PASSWORD)@redis-master-service.default.svc.cluster.local:$(REDIS_MASTER_SERVICE_SERVICE_PORT)/0\r\n```\r\n\r\ndo \"kubectl apply -f .\"\r\n\r\nadd another variable:\r\n\r\n```\r\n            - name: REDIS_PASSWORD\r\n              valueFrom:\r\n                configMapKeyRef:\r\n                  name: global-config\r\n                  key: redis.password\r\n```\r\n\r\nand if you bash'in in the container, the command \"env\" will print value for REDIS_URL with not interpolated $(REDIS_PASSWORD) even though it should have been replaced.\r\n\r\nThe current workaround is to add REDIS_PASSWORD first and remove REDIS_URL, apply changes, then add REDIS_URL, and then apply changes again.\r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"5\", GitVersion:\"v1.5.0\", GitCommit:\"58b7c16a52c03e4a849874602be42ee71afdcab1\", GitTreeState:\"clean\", BuildDate:\"2016-12-12T23:35:54Z\", GoVersion:\"go1.7.4\", Compiler\r\n:\"gc\", Platform:\"windows/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"5\", GitVersion:\"v1.5.3\", GitCommit:\"029c3a408176b55c30846f0faedf56aae5992e9b\", GitTreeState:\"clean\", BuildDate:\"2017-02-15T06:34:56Z\", GoVersion:\"go1.7.4\", Compiler\r\n:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n- Cloud provider or hardware configuration**: AZURE\r\n- OS (e.g. from /etc/os-release): \r\n```\r\nNAME=\"Ubuntu\"\r\nVERSION=\"16.04.2 LTS (Xenial Xerus)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 16.04.2 LTS\"\r\nVERSION_ID=\"16.04\"\r\nHOME_URL=\"http://www.ubuntu.com/\"\r\nSUPPORT_URL=\"http://help.ubuntu.com/\"\r\nBUG_REPORT_URL=\"http://bugs.launchpad.net/ubuntu/\"\r\nVERSION_CODENAME=xenial\r\nUBUNTU_CODENAME=xenial\r\n```\r\n- Kernel (e.g. `uname -a`): Linux k8s-master-FD89DE52-0 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux"}}
{"actor":{"display_login":"tadas-subonis"}}