Is there a way in argocd using which I can set a shelf life for my applications. Such that when shelf life has expired the application will automatically gets removed from the cluster.
I need this use-case for the dev/test environments where I want to provide my developers a way to directly deploy using their PR's so that they all can have their isolated deployments over Kubernetes. But at the same time I also want to optimise on costing side such that these deployments from feature branches get automatically pruned after some time(lets say 7 days).
The manual way of doing it will be write a python script which will delete all application which are older than 7 days. but here I will have to handle multiple things out of the box. I am looking for some argocd native solution.
Top comments (0)