https://pulumi.com logo
Title
b

brash-gigabyte-81569

11/08/2022, 8:57 PM
Is there a way to have pulumi wait during destroy operation? For instance, I want to wait for a chart to be completely removed before proceeding to delete node groups in an eks cluster.
p

prehistoric-london-9917

11/08/2022, 9:02 PM
You could try making the chart depend on the node group using the ResourceOptions
Other people might have ideas in #kubernetes too
b

brash-gigabyte-81569

11/08/2022, 9:03 PM
Yeah I tried that. Could be that the chart deleted but not in the order I wanted.
I’ll ask there
b

billowy-army-68599

11/08/2022, 9:14 PM
in this case it’s likely the chart deleted but the subresources didn’t delete. It’s a tricky problem with helm releases 😞
b

brash-gigabyte-81569

11/08/2022, 9:15 PM
The only kinds of problems i find my self hitting
ha
I did see that some providers have added some wait logic for instance the eks one waits on the cluster
b

billowy-army-68599

11/08/2022, 9:17 PM
you can wait inside an
apply
https://gist.github.com/lukehoban/fd0355ed5b82386bd89c0ffe2a3c916a it’s harder to do with a helm release
b

brash-gigabyte-81569

11/08/2022, 9:19 PM
i see
i might give this a spin
Future Searches: Found a better way by using this https://github.com/pulumi/pulumi-command