atlassian / smith

Smith is a Kubernetes workflow engine / resource manager
Apache License 2.0
285 stars 24 forks source link

Support immediate deletion of no longer referenced bundle resources #386

Open Burr opened 5 years ago

Burr commented 5 years ago

Right now when a resource is no longer referenced in a bundle, it will not be deleted by Smith until the bundle is in a Ready state. However, in some cases, it might be preferred to delete the resource immediately when it is detected that it is no longer needed.

One example is a HorizontalPodAutoscaler (which will depend on a Deployment) - if removed from the bundle, it should be deleted before the bundle becomes ready, otherwise it will continue to update the Deployment object it references.