Skip to content

HelmRelease targetNamespace change doesn't delete old release #471

@cwrau

Description

@cwrau

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

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions