{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/65837","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/65837/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/65837/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/65837/events","html_url":"https://github.com/kubernetes/kubernetes/pull/65837","id":338405379,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MzQ0MzEz","number":65837,"title":"output which pods are using the pvc in use when kubectl describe is run","user":{"login":"clandry94","id":5351125,"node_id":"MDQ6VXNlcjUzNTExMjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5351125?v=4","gravatar_id":"","url":"https://api.github.com/users/clandry94","html_url":"https://github.com/clandry94","followers_url":"https://api.github.com/users/clandry94/followers","following_url":"https://api.github.com/users/clandry94/following{/other_user}","gists_url":"https://api.github.com/users/clandry94/gists{/gist_id}","starred_url":"https://api.github.com/users/clandry94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clandry94/subscriptions","organizations_url":"https://api.github.com/users/clandry94/orgs","repos_url":"https://api.github.com/users/clandry94/repos","events_url":"https://api.github.com/users/clandry94/events{/privacy}","received_events_url":"https://api.github.com/users/clandry94/received_events","type":"User","site_admin":false},"labels":[{"id":477397086,"node_id":"MDU6TGFiZWw0NzczOTcwODY=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":573014062,"node_id":"MDU6TGFiZWw1NzMwMTQwNjI=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-ok-to-test","name":"needs-ok-to-test","color":"b60205","default":false},{"id":200149833,"node_id":"MDU6TGFiZWwyMDAxNDk4MzM=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note","name":"release-note","color":"c2e0c6","default":false},{"id":253450934,"node_id":"MDU6TGFiZWwyNTM0NTA5MzQ=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/M","name":"size/M","color":"eebb00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-05T02:10:52Z","updated_at":"2018-07-05T02:12:30Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/65837","html_url":"https://github.com/kubernetes/kubernetes/pull/65837","diff_url":"https://github.com/kubernetes/kubernetes/pull/65837.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/65837.patch"},"body":"**What this PR does / why we need it**:\r\nThis PR implements a feature request to display the pods in use by a PVC when `kubectl describe pvc` is ran. We need it since the only way to see which pods are bound to a PVC is by checking the volume mounts of each individual pod in the namespace. \r\n\r\nExample Output:\r\n```\r\n$ kubectl get pods,pvc\r\nNAME     READY  STATUS    RESTARTS   AGE\r\ntest-pod   1/1       Running       0                2h\r\n\r\nNAME      STATUS    VOLUME                                                                CAPACITY  ACCESS MODES   STORAGECLASS        AGE\r\ntest-pvc  Bound     pvc-718681dd-70cc-11e7-aa14-42010af00029   100Gi      RWO            us-east1-b          345d\r\n```\r\n\r\n```\r\n$ kubectl describe pvc\r\nName:          elasticsearch-data-elasticsearch-data-us-east1-b-0\r\nNamespace:     partners-production\r\nStorageClass:  us-east1-b\r\nStatus:        Bound\r\nVolume:      pvc-718681dd-70cc-11e7-aa14-42010af00029\r\nLabels:       <none>\r\nAnnotations:   <none>\r\nFinalizers:    [kubernetes.io/pvc-protection]\r\nCapacity:      1Gi\r\nAccess Modes:  RWO\r\nEvents:        <none>\r\nMounted By:     test-pod\r\n```\r\n\r\nPods using the PVC are shown with the `Mounted By` field\r\n\r\n**Which issue(s) this PR fixes**:\r\nCloses #65233 \r\n\r\n**Special notes for your reviewer**:\r\n\r\n**Release note**:\r\n```release-note\r\nRunning `kubectl describe pvc` now shows which pods are mounted to the pvc being described with the `Mounted By` field\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/402587423","html_url":"https://github.com/kubernetes/kubernetes/pull/65837#issuecomment-402587423","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/65837","id":402587423,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjU4NzQyMw==","user":{"login":"clandry94","id":5351125,"node_id":"MDQ6VXNlcjUzNTExMjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5351125?v=4","gravatar_id":"","url":"https://api.github.com/users/clandry94","html_url":"https://github.com/clandry94","followers_url":"https://api.github.com/users/clandry94/followers","following_url":"https://api.github.com/users/clandry94/following{/other_user}","gists_url":"https://api.github.com/users/clandry94/gists{/gist_id}","starred_url":"https://api.github.com/users/clandry94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clandry94/subscriptions","organizations_url":"https://api.github.com/users/clandry94/orgs","repos_url":"https://api.github.com/users/clandry94/repos","events_url":"https://api.github.com/users/clandry94/events{/privacy}","received_events_url":"https://api.github.com/users/clandry94/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T02:12:30Z","updated_at":"2018-07-05T02:12:30Z","author_association":"NONE","body":"/sig storage\r\n/sig cli\r\n"}}
{"actor":{"display_login":"clandry94"}}