-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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:
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
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!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request