Closed kheraud closed 1 month ago
The kustomize.toolkit.fluxcd.io/prune: disabled
works for objects applied by kustomize-controller, the PVC is managed by Helm.
Thanks for the quick reply. Indeed, helm.sh/resource-policy: keep
is the proper annotation to prevent pruning resources from HelmRelease
Describe the bug
I use the following kustomize to deploy my apps:
And the following
HelmRelease
to be deployed:The resulting PVC (coming from here: https://github.com/bitnami/charts/blob/main/bitnami/influxdb/templates/pvc.yaml) landing in the cluster:
Even with the
kustomize.toolkit.fluxcd.io/prune: disabled
annotation, the whole PVC (and PersistentVolume) is deleted when I delete the HelmRelease.Is there something I am missing here ?
Steps to reproduce
Use the manifest above and attempt a creation / deletion
Expected behavior
No removal of PVC and PersistentVolume
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
v2.4.0
Flux check
► checking prerequisites ✔ Kubernetes 1.30.5+k3s1 >=1.28.0-0 ► checking version in cluster ✔ distribution: flux-v2.4.0 ✔ bootstrapped: true ► checking controllers ✔ helm-controller: deployment ready ► ghcr.io/fluxcd/helm-controller:v1.1.0 ✔ kustomize-controller: deployment ready ► ghcr.io/fluxcd/kustomize-controller:v1.4.0 ✔ notification-controller: deployment ready ► ghcr.io/fluxcd/notification-controller:v1.4.0 ✔ source-controller: deployment ready ► ghcr.io/fluxcd/source-controller:v1.4.1 ► checking crds ✔ alerts.notification.toolkit.fluxcd.io/v1beta3 ✔ buckets.source.toolkit.fluxcd.io/v1 ✔ gitrepositories.source.toolkit.fluxcd.io/v1 ✔ helmcharts.source.toolkit.fluxcd.io/v1 ✔ helmreleases.helm.toolkit.fluxcd.io/v2 ✔ helmrepositories.source.toolkit.fluxcd.io/v1 ✔ kustomizations.kustomize.toolkit.fluxcd.io/v1 ✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2 ✔ providers.notification.toolkit.fluxcd.io/v1beta3 ✔ receivers.notification.toolkit.fluxcd.io/v1 ✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct