We should add a bool for EnablePlanTerminationProtection and add this as a field to Plan (or similar)
The field in Plan should support a default value, which can some from an env variable ATLAS_BROKER_ENABLE_PLAN_TERMINATION_PROTECTION default is false.
Then if the termination protection is enabled, then when deleting a plan we should:
Stop the cluster (if any)
Deactivate user (is this possible)
Deactivate apikey (if possible)
Tag the project as "deleted" or something.
then log all this, but really delete the service instance and don't fail the /deprovision broker call
@vasilevp - please review this and provide any feedback.
We should add a
bool
forEnablePlanTerminationProtection
and add this as a field toPlan
(or similar) The field in Plan should support a default value, which can some from an env variableATLAS_BROKER_ENABLE_PLAN_TERMINATION_PROTECTION
default isfalse
.Then if the termination protection is enabled, then when deleting a plan we should:
then log all this, but really delete the service instance and don't fail the
/deprovision
broker call@vasilevp - please review this and provide any feedback.
Originally posted by @jasonmimick in https://github.com/jasonmimick/atlas-osb/issues/17#issuecomment-656713992