-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rancher2 cluster delete order causing errors #89
Comments
Been performing some further testing. I had hoped https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/cluster_sync would help. Implemented in the above example as:
On creation, it's the last resource that's created and doesn't complete until the entire cluster is up (prior, Pulumi would simply state the
Destroy operation:
|
Workaround: Define an explicit dependency between a
|
Same issue here
|
Given the |
Hi,
Firstly - thanks a lot for this provider, awesome stuff.
I'm testing with provisioning an RKE cluster on EC2 instances via the use of the following objects:
rancher2.NewCloudCredential
rancher2.NewNodeTemplate
rancher2.NewCluster
rancher2.NewNodePool
in the snippet:
For provisioning a cluster it works flawlessly. For deleting, it fails:
From what I can see, it tries to delete the
NodeTemplate
object before the related node pool has deleted, which happens before the entire cluster is deleted.I think a cleaner way of doing this is to delete the cluster object entirely, which will also remove the node pools.
Pulumi version:
v2.19.0
Rancher Version
2.5.5
The text was updated successfully, but these errors were encountered: