-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: add reserved ip names for gateways #437
Conversation
/run pipeline |
@shemau Pipeline is failing with this. Is this expected?
|
looks expected. it was using a random name before. |
@@ -37,6 +37,7 @@ locals { | |||
ip_name = "${subnet.name}-${service.service_name}-gateway-${replace(subnet.zone, "/${var.region}-/", "")}-ip" | |||
subnet_id = subnet.id | |||
gateway_name = service.vpe_name != null ? service.vpe_name : "${var.prefix}-${var.vpc_name}-${service.service_name}" | |||
name = service.vpe_name != null ? "${service.vpe_name}-${replace(subnet.zone, "/${var.region}-/", "")}" : "${var.prefix}-${var.vpc_name}-${service.service_name}-${replace(subnet.zone, "/${var.region}-/", "")}" |
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.
What is the difference between ip_name
and name
?
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.
in terms of why do we need both
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.
ip_name is currently used as the map
index. If we change the map key name, the map entry gets removed and a new one gets created, which results in a destroy / create. If we leave the map key name untouched and just change the name of the resource it results in a update in place.
The name
is actually based on the gateway_name
with a -1, -2 or -3 taken from the zone (eg. us-south-1), which both shorter and has a user override in it.
/run pipeline |
Yes. This is the expected upgrade delta. I have confirmed that this is an update in place (not a delete/recreate), which avoids upgrade outages. This was the only error (for each of the 9 ips), so it can safely be skipped. The latest commit should skip the upgrade test (and add a comment to the readme). |
🎉 This PR is included in version 4.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Give option to name vpe ips.
#435
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
During an upgrade to this version the following update in place changes may be present in terraform output
A subsequent deploy might also show
which is a change to outputs and resolved by
terraform refresh
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers