How to find Pod which is using a PVC where storage name is specific Programatically in Go

74 views Asked by At

I am looking to find pod in kubernetes which is using a PVC but we need to filter based on a specific storage class name

Eg:- PVC created using storageclass name "ABC"

Pod using that PVC

There are 100s of pods in all the namespace , i want to filter out only pod which is using PVC where storage class is ABC

Filtering is somehow not happening because Pod does not contain storage class information

0

There are 0 answers