crc-org / crc-cloud

Disposable OpenShift instances on cloud in minutes
31 stars 19 forks source link

Include --force parameter on destroy #163

Open adrianriobo opened 9 months ago

adrianriobo commented 9 months ago

It could happens that during the create operation the execution is stopped (for whatever reason) if that happens the pulumi state is partially stored, and also it is marked as lock.

If we want to destroy based on the state we need to remove the lock, we can do that manually removing the content at .pulumi/locks

The idea is to add a parameter --force on destroy, to force remove the locks in case it exists and prevent destroying the resources