Skip to content

Conversation

@Gerrit91
Copy link
Contributor

@Gerrit91 Gerrit91 commented Jun 2, 2023

For firewall migration we need to delete the FCM resources inside the seed's shoot namespace: metal-stack/gardener-extension-provider-metal#308

However, it is not possible to delete any of the resources bypassing the controller's deletion flow because we are automatically adding a finalizer on reconcile.

This PR drops adding the finalizer, which allows to patch out the finalizers and then delete the resource, preventing the FCM to do any further actions from the deletion flow.

Additionally, it adds an annotation to the firewall monitor that contains the seed api URL. This way, the firewall-controller can attempt to update its seed client in case the endpoint has changed due to a shoot migration.

@Gerrit91 Gerrit91 force-pushed the finalizer-handling branch from d211b13 to 4fa9e05 Compare June 2, 2023 13:00
@Gerrit91
Copy link
Contributor Author

Gerrit91 commented Jun 2, 2023

For some reason the implementation introduces a race condition resulting in concurrent modification errors between monitor and set controller in the integration tests. I do not understand why this happens, so integration tests fail now and then. I will try to find the cause...

@Gerrit91
Copy link
Contributor Author

Gerrit91 commented Jun 5, 2023

I added a retry, which seems to stabilize tests.

@Gerrit91 Gerrit91 marked this pull request as ready for review June 5, 2023 08:42
@Gerrit91 Gerrit91 requested a review from a team as a code owner June 5, 2023 08:42
@Gerrit91 Gerrit91 force-pushed the finalizer-handling branch from 28da5d3 to f3c2884 Compare June 20, 2023 13:43
@Gerrit91 Gerrit91 changed the title Do not add finalizers automatically. Implement shoot migration Jun 20, 2023
@github-project-automation github-project-automation bot moved this to Review in Development Jun 5, 2025
@Gerrit91 Gerrit91 removed the status in Development Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants