-
Notifications
You must be signed in to change notification settings - Fork 82
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
Upgrade TF azurerm v2 and NatGateway pubIP migration #192
Conversation
@ialidzhikov Could you have a look? I will remove the draft of this pr gardener/terraformer#54 when we have reviewed this one here. |
CI/Concourse seems to pull to much from dockerhub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I played with it locally and the migration worked well. Looks good generally, thank you! Minor nits inline.
Before this migration can be applied all Shoots Infrastructure need to be reconciled by a Gardener Azure extension which contains this PR: #161 (shipped with v1.14.0)
There is one corner case that Infrastructures are no longer reconciled for hibernated Shoot - see gardener/gardener#2258. So technically there might be an Infrastructure of hibernated Shoot that is not reconciled by provider-azure@v1.14.0.
We can also run the infrastructure integration test when there is a release of terraformer. Or alternatively you can also update |
95e4410
to
473efc3
Compare
I run the infra integration tests locally with my custom terraformer |
/lgtm
@dkistner , what is our last agreement about this? Manual detection of such clusters and manual trigger for reconcile? If that is the case, will you take care about this? |
473efc3
to
10e12cc
Compare
10e12cc
to
32e50a8
Compare
docker's rate limit strikes again |
Let's switch the base image to |
/test-single |
Testrun: e2e-5j4c2 +---------------------+---------------------+-----------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+---------------------+-----------+----------+ | infrastructure-test | infrastructure-test | Succeeded | 17m45s | +---------------------+---------------------+-----------+----------+ |
/needs rebase |
32e50a8
to
5298abf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
How to categorize this PR?
/area open-source
/kind technical-debt
/priority normal
/platform azure
What this PR does / why we need it:
This PR contains migration logic to switch the
azurerm
Terraform provider version fromv1.x.x
to versionv2.x.x
(major version change).In detail the following changes in the Terraform are required:
features
field to the Terraform manifestazurerm_subnet
resource. There are meanwhile associations resources in place, but we need to keep the resource references before we can migrate. Before this migration can be applied all ShootsInfrastructure
need to be reconciled by a Gardener Azure extension which contains this PR: Prepare upgrade to Terraform azurerm v2.x.x #161 (shipped withv1.14.0
)azurerm_subnet
resource fieldaddress_prefix
has been moved toaddress_prefixes
TODO(natipmigration)
changes can be removed in future release when all ShootInfrastructure
are reconciled with this change. These changes are required to unblock also NatGateway integration – step 2 #54This PR can only be merged when a new Terraformer with this PR gardener/terraformer#54 is in.
Special notes for your reviewer:
Create an
Infrastructure
with NatGateway (with an Azure extension not including this PR and anazurerm
tf provider of versionv1.x.x
). Then reconcile the existingInfrastructure
an Azure extension which contains these changes.This Terraformer image can be used for testing:
dominickistner/terraformer:azurerm-2360
Release note:
/invite @ialidzhikov
/invite @kon-angelo