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

Workaround to get managed subnets working again #437

Merged
merged 3 commits into from
Feb 15, 2023

Conversation

AndiDog
Copy link

@AndiDog AndiDog commented Feb 9, 2023

Towards giantswarm/roadmap#1932 and giantswarm/roadmap#1832

We decided that we want to revert the buggy upstream change. I did that in separate commits, so it should be easy to see where the changes come from. On top, I added a unit test which covers all AWS API calls throughout full reconciliation of a AWSCluster with managed VPC and subnets. My suggestion for reviewers is to look at commits oldest-to-newest. Note how my unit test found a few issues such as not writing latest information back to memory – those points are fixed and reconciliation should now run smoother, in one run.

After the workaround, we will invest time into the larger upstream issue kubernetes-sigs#4026 where a networking rewrite draft shall be written before getting into implementation. The outcome should be the same: managed subnets working again. That might look different from the solution in this PR, such as introducing new AWS* CRs or versions, but I assume that we don't diverge a lot with this workaround, and that it will be easy to migrate to a fixed upstream version in the future.

P.S. I want to merge, not squash, these commits. Otherwise we cannot see anymore which parts are reverts of upstream commits vs. what I added.

This reverts commit 39f088b.

Giant Swarm specific change since we first want to work around the broken use case of CAPA-managed subnets, and then work on a real fix.
This reverts commit 1bc6ce8.

Giant Swarm specific change since we first want to work around the broken use case of CAPA-managed subnets, and then work on a real fix.
Copy link
Member

@fiunchinho fiunchinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants