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

big-state-95297

02/08/2024, 7:54 PM
Hi folks - When destroying a pulumi stack that contains a helm release (resource of type
helm.v3.Release
) the destroy operation fails with the following error:
Copy code
uninstallation completed with 1 error(s): uninstall: Failed to purge the release: release: not found
If I do a
helm list --all
in the release namespace it comes up empty (as expected). Doesn’t this mean the operation completed successfully? Why does the operation fail in such a case?
Decided that filing an issue was probably better: https://github.com/pulumi/pulumi-kubernetes/issues/2817
i

icy-controller-6092

02/08/2024, 8:38 PM
Could you be destroying the namespace before the helm chart?
b

big-state-95297

02/08/2024, 9:35 PM
That is indeed possible since there’s no explicit dependency between the two. However, the pulumi stack state does still show the namespace being present.
Still running the issue, so doesn’t look like it’s a case of the namespace getting deleted before the release
i

icy-controller-6092

02/16/2024, 4:49 AM
You can use the dependsOn option to explicitly model the dependency Or when you declare the helm Release, use the namespace output (metadata.namespace) as an input to the Release with the same effect
b

big-state-95297

02/16/2024, 9:38 AM
That’s what I’m doing now but still running into the same problem