prehistoric-account-60014
08/04/2020, 3:25 PMpulumi destroy
hanging forever due to a PVC not being finalized because of a pod in another stack relying on it. While there are many ways for us to fix this issue, the simplest way would be to avoid Pulumi waiting for the PVC finalizers to finish. Based on this (https://github.com/pulumi/pulumi-kubernetes/pull/417) pull request and this (https://www.pulumi.com/blog/improving-kubernetes-management-with-pulumis-await-logic/) blog post it seems that the <http://pulumi.com/skipAwait|pulumi.com/skipAwait>
annotation is what we want. Since those are a year-old and things have changes fast in the Pulumi world and I couldn’t find skipAwait
when searching the docs, I wanted to ask if this was still the recommended way to do things?gorgeous-egg-16927
08/04/2020, 3:30 PMprehistoric-account-60014
08/04/2020, 3:32 PMStackReference
s they use?gorgeous-egg-16927
08/04/2020, 3:34 PMprehistoric-account-60014
08/04/2020, 3:34 PMpulumi up -s $STACK
in the correct ordergorgeous-egg-16927
08/04/2020, 3:36 PMprehistoric-account-60014
08/04/2020, 3:41 PMStackReference
s used?gorgeous-egg-16927
08/04/2020, 3:44 PMprehistoric-account-60014
08/04/2020, 3:44 PM<http://pulumi.com/skipAwait|pulumi.com/skipAwait>
annotation didn’t work for our deployment. Are there any other escape hatches that could be used?pulumi destroy
was run and an annotation of <http://pulumi.com/skipAwait|pulumi.com/skipAwait>
set to true
, the destroy command is still running (and will soon time out)gorgeous-egg-16927
08/04/2020, 6:45 PM<http://pulumi.com/skipAwait|pulumi.com/skipAwait>: "true"
?prehistoric-account-60014
08/04/2020, 7:55 PMdeletionTimestamp
but there’s a finalizer of <http://kubernetes.io/pvc-protection|kubernetes.io/pvc-protection>
which is what prevents the deletion of the resource until the PVC isn’t active anymore (i.e., no pods use it as a claim)gorgeous-egg-16927
08/04/2020, 8:04 PMprehistoric-account-60014
08/04/2020, 8:04 PMgorgeous-egg-16927
08/04/2020, 8:07 PMprehistoric-account-60014
08/04/2020, 8:17 PMskipAwait
lands. Thanks for all the help Levi, I really appreciate it 🙂lemon-agent-27707
08/29/2020, 3:41 PMprehistoric-account-60014
08/30/2020, 3:22 PM