-
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
Add support for INTERNAL_SELF_MANAGED backend service #1833
Add support for INTERNAL_SELF_MANAGED backend service #1833
Conversation
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNew 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.
Ooh I think this means that allowing internal load balancing with global backend services. Can you take a look at #1689 and see if we need to update docs that were changed then?
Also @rileykarson fyi
I don't think we need to change any of those back. I've been testing settings like |
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. |
@@ -0,0 +1,100 @@ | |||
resource "google_compute_global_forwarding_rule" "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.
Does it make sense for this file to be part of the examples? I can also make it a separate test file.
What is best practice on this sort of thing?
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.
Unfortunately it's a bit of a best-judgment thing right now. I'd say for this one since global forwarding rules need backend services but not the other way around, that this example belongs with global forwarding rule and not backend service. My inclination is that the docs page should have realistic-ish examples, but not too many of them. So since this reads as a pretty typical way to set up load balancing, I'd say putting it in the docs is perfectly reasonable, but adding 5 more examples with different tweaks of the configuration wouldn't be.
One thing to be aware of with beta fields are that the generated tests don't have the import step, so it's a good idea to verify those manually as well.
Also it looks like the GFR docs didn't get generated for some reason, not really sure what's going on there.
@@ -0,0 +1,59 @@ | |||
resource "google_compute_global_forwarding_rule" "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.
Same as above
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. |
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. |
@@ -637,6 +637,34 @@ func TestAccComputeBackendService_withCustomHeaders(t *testing.T) { | |||
} | |||
<% end -%> | |||
|
|||
<% unless version == 'ga' -%> |
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.
This hand-written test is only necessary in order to do the import part, right? If so, can you add a comment to remove it once the feature goes GA (since then we'd get import for the example test)?
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. |
d5a736e
to
9d100ae
Compare
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. |
9d100ae
to
8914332
Compare
Add support for INTERNAL_SELF_MANAGED backend service and global forwarding rules
[all]
[terraform]
[terraform-beta]
Add support for internal self managed load balancing
[ansible]
[inspec]