Re: [kubernetes/kubernetes] output which pods are in use by a pvc when kubectl describe pvc is run (#65837)

2 views
Skip to first unread message

ps10

unread,
Nov 25, 2019, 2:03:17 AM11/25/19
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Hi @clandry94,
Is there a similar solution implemented in Kubernetes Python API.
I have tried using read_namespaced_persistent_volume_claim, which returns the PVC Object. However, this does not contain the Pod that is mounting this PVC.

Any pointers on this would of great help.

Regards


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Daniel Ma

unread,
Jan 30, 2020, 11:16:40 AM1/30/20
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Would it be possible to have getMountPods() exposed to the Golang API? Was looking for this exact method to use but just had to copy and paste it over to my own code. Seems odd to not expose it to the wider API, and just restrict it to kubectl describe. So similar to @ps10's request, expose the "Mounted By" to the PersistentVolumeClaimStatus perhaps

Reply all
Reply to author
Forward
0 new messages