mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
The unpin Job carried only helm.sh/hook-delete-policy: before-hook-creation, and its comment claimed a successful run is torn down with the release. Helm does not track hook resources as release members, so after helm uninstall the succeeded Job and its pod remained in the tenant namespace indefinitely, one per deleted pool name per namespace — before-hook-creation only fires on a next pre-delete of a same-named release, which never comes for a deleted pool. Add spec.ttlSecondsAfterFinished: 86400 so a finished Job is garbage-collected (a failed run still keeps its logs for a day), and correct the comment. Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
How to test packages local
cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd