Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement shoot migration #38

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Implement shoot migration #38

wants to merge 7 commits into from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant