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

Prepare upgrade to Terraform azurerm v2.x.x #161

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

dkistner
Copy link
Member

@dkistner dkistner commented Sep 9, 2020

Add association resources for routetable-to-subnet and nsg-to-subnet in parallel to internal associations on the subnet resource.

How to categorize this PR?
/kind impediment
/priority normal
/platform azure

What this PR does / why we need it:
We need to upgrade the azurerm Terraform provider to at least version v2.12.0 as this is required for the NatGateway bring your own IP scenario (#54 (comment), hashicorp/terraform-provider-azurerm#6450, hashicorp/terraform-provider-azurerm#6052).

As preparation for the upgrade we need to add the routetable-to-subnet and nsg-to-subnet external association resources in parallel to the internal associations on the subnet resource. Otherwise we won't be able to upgrade to azurerm v2, see here:
hashicorp/terraform-provider-azurerm#2358 (comment)

Special notes for your reviewer:
Create a Infrastructure without this change. Then checkout this PR and reconcile the Infrastructure once more. The route table/nsg to subnet association on Azure should not change.

Release note:


Add association resources for routetable-to-subnet and nsg-to-subnet in parallel to internal associations on the subnet resource.
@dkistner dkistner requested a review from ialidzhikov September 9, 2020 10:07
@dkistner dkistner requested review from a team as code owners September 9, 2020 10:07
@gardener-robot gardener-robot added kind/impediment Something that impedes developers, operators, users or others in their work platform/azure Microsoft Azure platform/infrastructure priority/normal labels Sep 9, 2020
@gardener-robot-ci-2 gardener-robot-ci-2 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Sep 9, 2020
@ialidzhikov
Copy link
Member

Is this PR dependent to the azurerm version bump in terraformer? In the past we had issue with gardener-attic/gardener-extensions#331 which was reverted in gardener-attic/gardener-extensions#348. Is this now fixed?

@dkistner
Copy link
Member Author

dkistner commented Sep 9, 2020

It is only fixed if you keep the inline and external association in parallel.
If you only use the external one it will alternating attach and detach the routetable and nsg,
With both this should not happen.

This PR is not related to a bump of Terraform version. It is just a preparation that we can move to azurerm v2 in the future (which we need to proceed with the Nat Gateway story).

@kon-angelo
Copy link
Contributor

/lgtm

@gardener-robot gardener-robot added the reviewed/lgtm Has approval for merging label Sep 9, 2020
Copy link
Member

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

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

/lgtm

@dkistner dkistner merged commit c43ad0f into gardener:master Sep 10, 2020
@dkistner dkistner deleted the prepare-tf-azurerm-2 branch September 10, 2020 06:56
dkistner added a commit to dkistner/gardener-extension-provider-azure that referenced this pull request Nov 16, 2020
Add migration to Terraform azurerm provider v2.
Add migration for Gardener managed NatGateway public ip.

TODO: This require gardener#161
dkistner added a commit to dkistner/gardener-extension-provider-azure that referenced this pull request Nov 16, 2020
Add migration to Terraform azurerm provider v2.
Add migration for Gardener managed NatGateway public ip.

TODO: This require gardener#161
dkistner added a commit to dkistner/gardener-extension-provider-azure that referenced this pull request Nov 16, 2020
Add migration to Terraform azurerm provider v2.
Add migration for Gardener managed NatGateway public ip.

TODO: This require gardener#161
@gardener-robot gardener-robot added the priority/3 Priority (lower number equals higher priority) label Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/impediment Something that impedes developers, operators, users or others in their work needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/azure Microsoft Azure platform/infrastructure priority/3 Priority (lower number equals higher priority) reviewed/lgtm Has approval for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants