Open debaprita opened 1 month ago
Thanks for submitting the bug. I'll take a look at it this week.
I wanted to provide a quick update on my availability as a maintainer. I pride myself on transparency and realise my standards have slipped in the last few months.
Since starting a full-time role in September, I have significantly less time to dedicate to this project. I'm now working on issues and pull requests out of hours on a best-effort basis.
Please bear with me if I take longer than usual to respond or review. I remain committed to the project and appreciate your patience and understanding during this transition.
Thank you for your continued support and contributions. I want you to know I'm committed to maintaining better communication.
Describe the bug
Behavior of
flux uninstall
removes all the CRDs and necessary finalizers from the cluster. However, executingdestroy
with the Flux Terraform provider causesHelmRelease
CRD to get stuck in aTerminating
state. It is imperative to runflux uninstall
to ensure proper cleanup, including their finalizers. There arehelm.toolkit.fluxcd.io/v2beta1
HelmRelease
objects defined on the cluster.Status of
HelmRelease
CRD after runningterraform destroy
:Steps to reproduce
terraform apply
to installflux
on AKS clusterflux
installed successfullyterrform destroy
to uninstallflux
kubectl get crds | grep flux
helmreleases.helm.toolkit.fluxcd.ioflux uninstall --namespace=flux-system --keep-namespace
Are you sure you want to delete Flux and its custom resource definitions: y ► deleting components in flux-system namespace ► deleting toolkit.fluxcd.io finalizers in all namespaces ✔ HelmRelease/ingress-nginx/ingress-nginx finalizers deleted ✔ HelmRelease/monitoring/prometheus finalizers deleted ► deleting toolkit.fluxcd.io custom resource definitions ✗ CustomResourceDefinition/helmreleases.helm.toolkit.fluxcd.io deletion failed: customresourcedefinitions.apiextensions.k8s.io "helmreleases.helm.toolkit.fluxcd.io" not found ✔ uninstall finishedkubectl get crds | grep flux
now returns nothingExpected behavior
Running
terraform destroy
should have deletedHelmRelease
CRD and its finalizers.Screenshots and recordings
No response
Terraform and provider versions
Terraform v1.9.3 on darwin_arm64 FluxCD 1.30 Kubernetes v2.32.0 Azure RM v3.116.0 AKS Cluster v1.29.4
Terraform provider configurations
locals.tf
flux_bootstrap_git resource
Flux version
v2.3.0
Additional context
No response
Code of Conduct
Would you like to implement a fix?
None