-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HelmRelease doesnt delete prev resources on update #2924
Comments
I have the same issue. Basically :
How can I automate garbage collection of dangling helm resources ? @pdeva did you ever manage to find a mitigation to this ? thanks |
Fixed in fluxcd/helm-controller#738 |
I have a possibly related phenomenon here: A Helm chart introduced some ressources (a deployment, a service) in one of the previous versions, and removed them again later. But the resources are still present on the cluster. (Deployment, with the Pods being in ImagePullBackOff). HelmRelease claims to be successfully reconciled. I set Pulling and Versions:
Is the helm-controller supposed to remove resources from the cluster if they get removed in a newer chart version? |
Describe the bug
I created a HelmRelease
test-flux
with a deployment, service and image all namedtest-flux
. I initially gave it correct values invalues.yaml
and it ran successfully. Then i gave it incorrect values , egtest-fluxa
instead oftest-flux
for the image name, app name etc. Surely enough it resulted in the pods going in an error state. All looked good so far.However, when i reverted the changes back (to
test-flux
), even thoughHelmRelease
spun up the new successful pods. It didnt delete the previous service and deployments (namedtest-fluxa
).Steps to reproduce
Expected behavior
Previously generated resources of a helm release should always be deleted when resource names are updated.
Screenshots and recordings
No response
OS / Distro
Ubuntu 22.04
Flux version
v0.31.2
Flux check
► checking prerequisites
✗ flux 0.31.3 <0.31.4 (new version is available, please upgrade)
✔ Kubernetes 1.21.12-eks-a64ea69 >=1.20.6-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.22.1
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.23.4
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.19.2
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.26.2
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.24.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.25.9
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta1
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1beta2
✔ helmcharts.source.toolkit.fluxcd.io/v1beta2
✔ helmreleases.helm.toolkit.fluxcd.io/v2beta1
✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2
✔ imagepolicies.image.toolkit.fluxcd.io/v1beta1
✔ imagerepositories.image.toolkit.fluxcd.io/v1beta1
✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta1
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta1
✔ receivers.notification.toolkit.fluxcd.io/v1beta1
✔ all checks passed
Git provider
github
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: