-
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 NetworkTier for GlobalForwardingRule. #12474
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 1070 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
@@ -3,6 +3,7 @@ resource "google_compute_global_forwarding_rule" "default" { | |||
target = google_compute_target_http_proxy.default.id | |||
port_range = "80" | |||
load_balancing_scheme = "EXTERNAL_MANAGED" | |||
network_tier = "PREMIUM" |
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 set this to the non-default value in this test? Just to make sure we can set to something that's not PREMIUM
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.
Default is more complex here - PREMIUM
in general is default for global ForwardingRules unless someone has project defined STANDARD
network tier. STANDARD
is not allowed for global ForwardingRules, so if someone has this per-project setting, then effectively cannot use terraform to setup global FRs.
This also is a reason why we cannot specify here other tier than PREMIUM
.
I was considering two options:
- Mimic API and just add
networkTier
to global FR (so users can setPREMIUM
explicitly), or - Add custom code for terraform that would always set
PREMIUM
as networkTier.
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.
If that's the case, why add this field at all to Terraform?
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.
Talked offline, this is only applicable for STANDARD projects that need to specify PREMIUM to be able to create a GFR. We don't have access to these for testing
Adds a NetworkTier for GlobalForwardingRule.
Fixes hashicorp/terraform-provider-google#20514
Release Note Template for Downstream PRs (will be copied)