yogeshkk / K8sPurger

Hunt Unused Resources In Kubernetes
Apache License 2.0
254 stars 27 forks source link

Removing ability to delete resources #3

Closed yogeshkk closed 3 years ago

yogeshkk commented 3 years ago

Hello All,

I have created this script to find clean old unused config map. Then I started adding feature to it and now it can find and clean up secret, PVC and recently added service.

I am thinking about removing deleting ability as this is not much used feature also this help us to improve script further. Also in case of newly added service it might be marked as unused because of wrong selector or any miss-configuration. I will just comment the deletion part after 7 days so if anyone want to use it they can but if any new resources added won't have delete enabled (I am thinking about adding ingress next).

I know this is not popular that I receive reply but as this is in opensource it is my obligation to you all to share my view on upcoming development.

Finally, I never thought this will receive this much appreciation. Thanks for that. Let me know your thoughts on above.

Thanks, Yogesh(Yogi)

yogeshkk commented 3 years ago

One More thing current delete all or none function is unjustifiable as many times we have to delete a few. I might add that back if I could able to do only selected resource but that might never see a day as this is console utility.

yogeshkk commented 3 years ago

In new release removed deletion ability. Will clear code in upcoming release closing the issue.

https://github.com/yogeshkk/K8sPurger/releases/tag/v3.0