Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not requeue when finalizing managed service instance
A couple of flakes on the CI showed that a managed service might be deprovisioned with the broker twice: ``` https://ci.korifi.cf-app.com/teams/main/pipelines/main/jobs/run-tests-periodic/builds/19402 https://ci.korifi.cf-app.com/teams/main/pipelines/main/jobs/run-tests-periodic/builds/19396 https://ci.korifi.cf-app.com/teams/main/pipelines/main/jobs/run-tests-periodic/builds/19358 ``` Analysis showed that when the controller [requeues the reconcile event on finalization](https://github.com/cloudfoundry/korifi/blob/2dfdb3848bc8690e3e5be14a535ae52c46152d46/controllers/controllers/services/instances/managed/controller.go#L265), the very same object (same generation, same resource version) could be reconciled twice thus request deprovision the instance from the broker twice. In order to address this, this change removes the finalizer when deprovisioning with the broker succeeds and does not requeue the reconcile event. Co-authored-by: Danail Branekov <[email protected]>
- Loading branch information