orange-cloudfoundry / cf-ops-automation

a collaboration framework for operating cloudfoundry and services at scale
22 stars 6 forks source link

Enhance delete lifecycle with new hooks (pre/post delete) #212

Open o-orand opened 5 years ago

o-orand commented 5 years ago

Is your feature request related to a problem? Please describe. When a bosh delete is executed, it may require additional cleanup (uaa, etc...). Currently, COA require each deployment to develop custom cleanup solution.

Describe the solution you'd like Enhance delete lifecycle with a pre-delete.sh and a post-delete.sh to ease theses additional cleanup step. It may impact https://github.com/orange-cloudfoundry/cf-ops-automation/issues/67

gberche-orange commented 5 years ago

Limitations of adding shell hooks along with #187 (exposing credhub credentials in shell hooks):

Alternative is to have deployer-specific life cycle events:

gberche-orange commented 5 years ago

Impacts if not implementing this enhancement: resources leaks

Contexts of these leaks:

poblin-orange commented 4 years ago

also note the new bosh lifecycle https://bosh.io/docs/pre-stop/ bosh deployment could leverage this lifecycle (see eg: https://github.com/orange-cloudfoundry/generic-scripting-release/issues/4)

support added in v3