steep-toddler-9409508/12/2022, 2:50 AM
knows only to run when the EKS cluster is being deleted. Is it because
? I.e. if the
was a hardcoded string then this
would just never run under any circumstances? https://www.pulumi.com/registry/packages/command/#graceful-cleanup-of-workloads-in-a-kubernetes-cluster What if this Command depends on multiple pulumi resources? Would it run if just one of the resources is being deleted?
little-cartoon-1056908/12/2022, 3:06 AM
seems to capture the intention
delete: "kubectl delete --all namespaces",
steep-toddler-9409508/12/2022, 3:07 AM
Note that implicit and explicit (so the Command is only run if all implicit or explicit dependencies fulfill the create/delete/etc event. So if a Command has two dependencies, but only 1 is being deleted, it will not run) dependencies can be used to control the order that these
Commandresources are constructed relative to each other and to the cloud resources they depend on. This ensures that the
CopyFileoperations run after all dependencies are created, and the
createoperations run before all dependencies are deleted.
little-cartoon-1056908/12/2022, 3:13 AM
steep-toddler-9409508/12/2022, 3:17 AM