amazon-archives / aws-service-operator

AWS Service Operator allows you to create AWS resources using kubectl.
Apache License 2.0
733 stars 103 forks source link

races during deletion #183

Open sebgoa opened 5 years ago

sebgoa commented 5 years ago

Hi,

My first experiments with the operator tells me that there are races between the operator and CF.

For example, you can create a queue and delete. The CRD will be removed right away but the stack may take ~2/3 minutes to complete and get removed.

So if you try to create the same queue again kubectl apply it will fail even thought the queue has disappeared in the SQS console. That's because CF has not yet finished.

I think the queue CRD should remain in Terminating state using a Foreground deletion type thing until the CF stack has been removed.