annotations:
helm.sh/hook: post-install
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
helm.sh/hook-weight: "-5"
Addon-operator is not obeying the Helm deletion hooks. This is what I find in the addon-operator's log:
time="2022-11-30T12:24:38Z" level=debug msg="Absent resources detected" module=mymodule operator.component=HelmResourceMonitor
time="2022-11-30T12:24:38Z" level=debug msg="Detect absent resources for mymodule"
time="2022-11-30T12:24:38Z" level=debug msg=test/Job/test-job
time="2022-11-30T12:24:38Z" level=info msg="got 1 absent module resources, append task ModuleRun for module 'mymodule', phase '', trigger is DetectAbsentHelmResources" operator.component=handleManagerEvents task.flow=add
Discussed in #343
Originally posted by oscar-martin November 30, 2022
I have created a module that creates a Job with the next Helm hooks:
Addon-operator is not obeying the Helm deletion hooks. This is what I find in the addon-operator's log:
I have read the topic about release auto-healing and I think that should've been managed.I thought that somehow the addon-operator would check only resources that are not annotated with Helm deletion hooks to make the comparison with the actual state of the Helm release.
Thanks!