terraform-provider-rancher2
terraform-provider-rancher2 copied to clipboard
Add retry on conflict when deleting custom roles
This PR adds a Retry on deletion with retryable error on IsConflict
API error, the provider will error after delete timeout.
When deleting custom roles that inherit other custom roles, you can sometimes get an 409 API error even if terraform deletes the hierarchy properly (childs are deleted before parents).