You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Behavior of flux uninstall removes all the CRDs and necessary finalizers from the cluster. However, executing destroy with the Flux Terraform provider causes HelmRelease CRD to get stuck in a Terminating state. It is imperative to run flux uninstall to ensure proper cleanup, including their finalizers. There are helm.toolkit.fluxcd.io/v2beta1HelmRelease objects defined on the cluster.
Status of HelmRelease CRD after running terraform destroy:
status:
acceptedNames:
kind: HelmRelease
listKind: HelmReleaseList
plural: helmreleases
shortNames:
- hr
singular: helmrelease
conditions:
- lastTransitionTime: "2024-09-29T16:48:09Z"
message: no conflicts found
reason: NoConflicts
status: "True"
type: NamesAccepted
- lastTransitionTime: "2024-09-29T16:48:09Z"
message: the initial names have been accepted
reason: InitialNamesAccepted
status: "True"
type: Established
- lastTransitionTime: "2024-09-29T16:56:36Z"
message: CustomResource deletion is in progress
reason: InstanceDeletionInProgress
status: "True"
type: Terminating
storedVersions:
- v2
Steps to reproduce
terraform apply to install flux on AKS cluster
flux installed successfully
terrform destroy to uninstall flux
kubectl get crds | grep flux
helmreleases.helm.toolkit.fluxcd.io
flux 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 finished
kubectl get crds | grep flux now returns nothing
Expected behavior
Running terraform destroy should have deleted HelmRelease 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
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.io
flux 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 finished
kubectl 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
The text was updated successfully, but these errors were encountered: