{"action":"closed","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/30766","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/30766/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/30766/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/30766/events","html_url":"https://github.com/kubernetes/kubernetes/issues/30766","id":171646530,"number":30766,"title":"Using volume name \"source\" on 2+ containers leads to a \"not found\" error","user":{"login":"stp-ip","id":3768412,"avatar_url":"https://avatars2.githubusercontent.com/u/3768412?v=4","gravatar_id":"","url":"https://api.github.com/users/stp-ip","html_url":"https://github.com/stp-ip","followers_url":"https://api.github.com/users/stp-ip/followers","following_url":"https://api.github.com/users/stp-ip/following{/other_user}","gists_url":"https://api.github.com/users/stp-ip/gists{/gist_id}","starred_url":"https://api.github.com/users/stp-ip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stp-ip/subscriptions","organizations_url":"https://api.github.com/users/stp-ip/orgs","repos_url":"https://api.github.com/users/stp-ip/repos","events_url":"https://api.github.com/users/stp-ip/events{/privacy}","received_events_url":"https://api.github.com/users/stp-ip/received_events","type":"User","site_admin":false},"labels":[{"id":138247961,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/kubectl","name":"area/kubectl","color":"0052cc","default":false},{"id":778118402,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lifecycle/rotten","name":"lifecycle/rotten","color":"604460","default":false},{"id":169428334,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/storage","name":"sig/storage","color":"d2b48c","default":false},{"id":173493827,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/cluster%20(deprecated%20-%20do%20not%20use)","name":"team/cluster (deprecated - do not use)","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-17T12:35:51Z","updated_at":"2018-02-27T02:07:53Z","closed_at":"2018-02-27T02:07:53Z","author_association":"MEMBER","body":"**What keywords did you search in Kubernetes issues before filing this one?**:\n- duplicate volumes\n- volumes\n\n---\n\n**Is this a BUG REPORT or FEATURE REQUEST?** (choose one):\n- BUG REPORT\n\n-->\n\n**Kubernetes version** (use `kubectl version`):\nServer: v1.3.4\nClient: v1.3.0\n\n**Environment**:\n- **Cloud provider or hardware configuration**:\n- GKE\n- **OS** (e.g. from /etc/os-release):\n- GKE container-vm  image\n- **Kernel** (e.g. `uname -a`):\n- **Install tools**:\n- **Others**:\n\n**What happened**:\nWhen using \"source\" as volume name in a pod or deployment spec, it fails with the \"spec.template.spec.containers[0].volumeMounts[0].name: Not found: \"source\"\".\n\n**What you expected to happen**:\nkubectl apply -f should not have thrown an error, but deployed the latest volume.\n\n**How to reproduce it** (as minimally and precisely as possible):\n- Create a pod with at least 2 containers (including init containers)\n- use an emptyDir volume named \"source\"\n- create this pod or deployment\n\n**Anything else do we need to know**:\nWhen adding a second volume definition with the same name it works.\n\nDoes not work:\n\n``` volumes:\n      - name: source\n        emptyDir: {}\n```\n\nDoes work:\n\n``` volumes:\n      - name: source\n        emptyDir: {}\n      - name: source\n        emptyDir: {}\n```\n\nDoes also work:\n\n``` volumes:\n      - name: source2\n        emptyDir: {}\n```\n\nAs a sidenote. Applying the duplicate volumes works and getting the yaml from the apiserver actually only returns one volume.\n"}}
{"actor":{"display_login":"k8s-ci-robot"}}