https://pulumi.com logo
#kubernetes
Title
# kubernetes
p

proud-pizza-80589

07/18/2021, 1:55 PM
Anyone noticed wrong ordering on delete? I make a PVC, then use the PVC in a deployment, creation works perfectly. But when deleting, it tires to delete the PVC first, which “stalls” because it is still mounted in the Deployment. Both the PVC and the deployment are in separate custom resources., the resource containing the PVC is passed intot he constructor of the custom resource that has the deployment.
adding a bunch of depends on solves it btw
p

plain-quill-22197

07/19/2021, 12:44 PM
normally if you use a resource output when creating another resource, they form a proper dependency chain
just passing it to the constructor of a dependent resource is not enough as Pulumi knows nothing about how your code is structured
only Output -> Input usage forms a proper dependency chain
4 Views