steep-toddler-94095
08/12/2022, 2:50 AMCommand
knows only to run when the EKS cluster is being deleted. Is it because environment
depends on cluster
? I.e. if the KUBECONFIG
was a hardcoded string then this Command
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-10569
08/12/2022, 3:06 AMdelete: "kubectl delete --all namespaces",
seems to capture the intentionsteep-toddler-94095
08/12/2022, 3:07 AMNote 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 thesedependsOn
andCommand
resources are constructed relative to each other and to the cloud resources they depend on. This ensures that theCopyFile
operations run after all dependencies are created, and thecreate
operations run before all dependencies are deleted.delete
little-cartoon-10569
08/12/2022, 3:13 AMenvironment
).steep-toddler-94095
08/12/2022, 3:17 AM