helm-controller icon indicating copy to clipboard operation
helm-controller copied to clipboard

HelmRelease targetNamespace change doesn't delete old release

Open cwrau opened this issue 2 years ago • 0 comments

Describe the bug

When you set spec.targetNamespace the HelmRelease is successfully installed into that namespace

If you change that field afterwards, the HelmRelease will be installed into the new namespace, but also be left in the old namespace

Steps to reproduce

  1. Create HelmRelease with .spec.targetNamespace=kube-system
  2. Wait for reconcilation
  3. Change spec.targetNamespace=default
  4. Wait for reconcilation
  5. Observe 2 "real" helm releases -> helm list -A

Expected behavior

It should delete the old helm release, just like when I delete a HelmRelease

(I don't expect any move magic, delete and recreate is what I'm after)

Screenshots and recordings

No response

OS / Distro

N/A

Flux version

helm-controller:v0.20.1

Flux check

N/A

Git provider

No response

Container Registry provider

No response

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

cwrau avatar Apr 25 '22 14:04 cwrau