Closed kotarusv closed 2 years ago
Thanks a lot @kotarusv
There are two parts.
I am trying to do as few API calls as possible. There is only one big API call(list pod) and I am extracting Secret, CM, PVC, and SA from it. So if I add this flag you won't see any significant improvement in time. Only people interested in others can see significant improvement.
User experience. When new users try to run the script they don't need to know all the parameters they have to provide to get the correct output. They can just run the script and they will get output. So even if I have to add such parameter it will be for power user mean it will exclude flag and you have to exclude all but the one you interested in. This again makes the life of the power user difficult so I am trying to avoid the same.
I did try to make the output nice let me know if I can improve it further also ideally If you have the big output that case of concern. Also, I have added Prometheus integration for such output you can check in Prometheus or in Grafana to view them nicely.
This script is very useful. I been looking for quite some to list unused PVC, not being used in any pods. I don't find any solution so far. I found this script is super helpful in what am looking for. However, It would be nice if script takes 1 or more arguments to print just a specific type of resource. For example, I want to just print unused PVC, not interested in other resources. This helps
Srinivas Kotaru