https://pulumi.com logo
Title
i

incalculable-midnight-8291

08/30/2022, 4:18 PM
Is there some way to tag
k8s.helm.v3.Release
so that pulumi skips uninstall on a stack destroy, where the cluster itself will be taken down?
b

billowy-army-68599

08/30/2022, 4:19 PM
can you elaborate? you’re destroying the cluster so you don’t want bother deleting the helm release?
i

incalculable-midnight-8291

08/30/2022, 4:21 PM
Exactly. There wont be any service of loadbalancer type, so nothing externally created. And the ec2-instances where everything is running will be deleted. So feels a bit iffy to wait for uninstalls since sometimes kubernetes namespaces or pods gets stuck in Terminating state that needs manual patching of the finalizers to get rid of
b

billowy-army-68599

08/30/2022, 4:24 PM
Try setting
retainOnDelete
on the resource provider: https://www.pulumi.com/docs/intro/concepts/resources/options/retainondelete/ it’ll just get removed from state, but the resource gets left alone
❤️ 1
i

incalculable-midnight-8291

08/30/2022, 4:24 PM
Usecase: automatic setup / teardown of environments for tests in our platform team
That will do it!
Huuuuuuge thanks man!
🍰
🎉 1