Description
Feature Request
Now we will dispatch destroy job if Configuration is deleted. However, sometimes no resources is created due to the wrong Configuration. In this case, we should detect the resource creation phase and skip the destroy phase depends on the situation.
1. What kubevela/kubevela#3929 do
In deletion part, kubevela#3929 will set configuration.spec.forceDelete
to true. Anything else is dealt with terraform-controller.
Origin Post
Hey, I know this is merged, but I realized when you have something wrong the deletion don't complete. For example, Imagine you go to the Cloud provider portal and delete the resource, terraform will fail to delete saying the resource doesn't exist, like this:
Error: Error: Subnet: (Name "subnet-1" / Virtual Network Name "vnet-1" / Resource Group "example1") was not found
The same happen if I accidentally make a mistake in a HCL and apply some components in an application, but try to delete after realize I did a mistake, the delete never happen.
I just did it on my test environment and can't delete the application even using force
.
I receive a:
Deleting Application "vm-1"
force deleted the resources created by application
successfully cleanup the resources created by application, but fail to delete the application
Error: timed out waiting for the condition
Originally posted by @alisson276 in kubevela/kubevela#3929 (comment)