-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Adding next_hop_ilb attribute to compute route resource #2215
Adding next_hop_ilb attribute to compute route resource #2215
Conversation
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. They will authorize it to run through our CI pipeline, which will generate downstream PRs. Thanks for your contribution! A human will be with you soon. @rambleraptor, please review this PR or find an appropriate assignee. |
Hello! I'm going to kick off our CI and put @rileykarson on this (since it's a Terraform-only contribution) |
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNo diff detected in terraform-google-conversion. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
Hey @Madankapoor! Do you mind adding an example using this field? If you add an example definition based on the Example type, MM will automatically generate a test based on the example's config. |
Hi @rileykarson, Thank you for your feedback. I have added a test case as required. |
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
Thanks @Madankapoor! I'm passing review off to @slevenick because they have more background on the feature than me. |
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.
Looks good, thanks! Just needs a simple change and then I'll take care of merging in the downstreams.
subnetwork = "${google_compute_subnetwork.default.name}" | ||
} | ||
|
||
resource "google_compute_route" "default" { |
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.
primary_resource_id
is supposed to be used within the example template to allow terraform to access the resource's id for import test purposes. It doesn't get used in beta-only examples, but can you change it so that when this moves to the google
provider it will work?
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.
ya i have added primary id
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.
Can you replace "google_compute_route" "default"
with "google_compute_route" "<%= ctx[:primary_resource_id] %>"
here
It allows us to access the name of the terraform resource for import later. This is different than the name
field on the resource itself, as we need to know the name used to identify the block for testing import
@slevenick I have made requested changes and responded back to the questions. Does it seem good ? |
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
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.
Just a couple small things, but once they are fixed I will merge!
@@ -0,0 +1,52 @@ | |||
resource "google_compute_network" "default" { | |||
provider = "google-beta" |
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.
Can you fix the spacing on this block? Seems to have gotten mixed up
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.
ya fixed it.
subnetwork = "${google_compute_subnetwork.default.name}" | ||
} | ||
|
||
resource "google_compute_route" "default" { |
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.
Can you replace "google_compute_route" "default"
with "google_compute_route" "<%= ctx[:primary_resource_id] %>"
here
It allows us to access the name of the terraform resource for import later. This is different than the name
field on the resource itself, as we need to know the name used to identify the block for testing import
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI didn't open any new pull requests because of this PR. |
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.
Thanks for the addition!
This adds the beta feature to the route resource for next-hop internal load balancer. https://cloud.google.com/compute/docs/reference/rest/beta/routes/insert
Release Note for Downstream PRs (will be copied)