flant / addon-operator

A system to manage additional components for Kubernetes cluster in a simple, consistent and automated way.
https://flant.github.io/addon-operator/
Apache License 2.0
483 stars 27 forks source link

Module's helm release in uninstalling state doesn't get purged by the operator #496

Closed miklezzzz closed 1 month ago

miklezzzz commented 1 month ago

Expected behavior (what you expected to happen): if a module is disabled, it's helm releases should be purged

Actual behavior (what actually happened): module was disabled, but it seems the operator couldn't completely delete the module's release and the release ended up in Uninstalling state

kind: Secret
metadata:
  creationTimestamp: "2024-08-08T09:22:31Z"
  labels:
    modifiedAt: "1723108936"
    name: virtualization
    owner: helm
    status: uninstalling
    version: "2"
  name: sh.helm.release.v1.virtualization.v2

Consequent purge calls couldn't remediate the situation, reporting:

{"level":"info","msg":"Modules to purge found: []","time":"2024-08-14T14:24:10Z"}

Steps to reproduce:

  1. ...
  2. ...
  3. ...

Environment:

Anything else we should know?:

Additional information for debugging (if necessary):

Hook script

Logs