Closed samip5 closed 6 months ago
Hey @samip5,
Can you please check what resources are still present when you are in this loop? When you uninstall the chart, all resources are deleted, so we just remove the finalizer. Is it possible that some resources that we apply with helm are not deleted, causing this loop?
The issue seems to be with the different RBAC related objects, like roles, service accounts, role bindings, some secrets AND autoscalingrunnersets themself. I always have to manually patch them to remove finaliser(s) before it will actually uninstall.
The same issue exists when installing the chart via ArgoCD (see #3440)
In Argo, you can annotate the manifests with an argo-specific annotation that defines the order of what resources to apply/destroy. I've proposed the ArgoCD fix in #3447. I've never gotten to work with Flux, but I'd guess it has some similar functionality.
To add more context, i've found when you delete the scaleset, ARC (the controller) will delete the resources with the finalizer along the scaleset CR, so I added the argo annotations to ignore the finalizer resources, and make the scaleset be applied last and deleted first.
The process also works manually, although it is considerably more tedious - Disable flux/argo auto sync, delete the scale set, the RBAC resources will get destroyed by the ARC controller, so then uninstall the chart/app in its entirety and it will go quietly
I've never gotten to work with Flux, but I'd guess it has some similar functionality.
I'm not sure about that, as to my understanding it really doesn't have similar functionality in the aspect of order of deletion/apply.
Checks
Controller Version
0.9.1
Deployment Method
Helm
Checks
To Reproduce
Describe the bug
Controller seems to be stuck on "waiting for dependent resources to be deleted" for the set.
Describe the expected behavior
I expected it to have no issue deleting the sets.
Additional Context
Controller Logs
Runner Pod Logs