Helm operator: namespace scope resources with Helm keep annotations are being deleted by garbage collection #4378
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
language/helm
Issue is related to a Helm operator project
Milestone
Bug Report
What did you do?
I created a sample Helm operator, then modified one of the namespace scope resources in the template to contain:
see "Tell Helm Not To Uninstall a Resource" in: https://helm.sh/docs/howto/charts_tips_and_tricks for more details.
After applying the Helm sample CR and then proceed to delete it, the resource with the keep annotation is also deleted from the cluster.
When I tried the same annotation on a cluster scope resource, that resource is not deleted so I think the issue is due to parent child garbage collection with namespace scope resources.
What did you expect to see?
If possible, it would be nice to have the namespace resources that are annotated with the keep to still exists after the CR is deleted. Or the website/doc should mention that
keep
annotation is not supported for namespace scope resources.What did you see instead? Under which circumstances?
namespace scope resources with Helm keep annotations are being deleted when the Helm operator CR is removed.
Environment
Operator type:
/language helm
Kubernetes cluster type:
kind
$ operator-sdk version
$ kubectl version
Possible Solution
The text was updated successfully, but these errors were encountered: