Hi, has anyone got `RetainOnDelete` to work with a...
# general
e
Hi, has anyone got
RetainOnDelete
to work with a Helm v3.Chart? If I delete a chart it continues to delete the associated k8s resources, instead of leaving them unchanged. Namespaces (for example) work as expected, so maybe it is something to do with Helm charts and/or the Go implementation? (Example code in the comments)
Copy code
redisNS, err := v1.NewNamespace(ctx, stack+"-test-redis-ns", &v1.NamespaceArgs{
		Metadata: &meta.ObjectMetaArgs{
			Name:   pulumi.String("test-redis"),
			Labels: pulumi.StringMap{},
		},
	}, pulumi.Parent(component), pulumi.RetainOnDelete(true))
	if err != nil {
		return nil, err
	}

	_, err = helm.NewChart(ctx, "test-redis", helm.ChartArgs{
		Path:      pulumi.String("./charts/redis"),
		Namespace: pulumi.String("test-redis"),
		Values:    pulumi.Map{},
	}, pulumi.RetainOnDelete(true), pulumi.DependsOn([]pulumi.Resource{redisNS}))
	if err != nil {
		return nil, err
	}
Applying this code then deleting it will leave the namespace in k8s, but all of the resources from the Helm chart will have been deleted. v3.33.1