-
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 optional input ParentService to BootstrapSharedServiceNetworkingC… #9598
add optional input ParentService to BootstrapSharedServiceNetworkingC… #9598
Conversation
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. Terraform GA: Diff ( 1 file changed, 20 insertions(+), 11 deletions(-)) |
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. Terraform GA: Diff ( 1 file changed, 20 insertions(+), 11 deletions(-)) |
Tests analyticsTotal tests: 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 testsTestAccDataSourceGoogleServiceAccountIdToken_impersonation |
Rerun these tests in REPLAYING mode to catch issues
|
@@ -361,19 +361,27 @@ func BootstrapSharedTestNetwork(t *testing.T, testId string) string { | |||
return network.Name | |||
} | |||
|
|||
type AddressSettings struct { | |||
PrefixLength int | |||
type OptionalSettings struct { |
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.
We should use different types per function! That'll stop us from accidentally using bad options, like AddressWithPrefixLength with BootstrapSharedServiceNetworkingConnection
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.
But we do need AddressWithPrefixLength
with BootstrapSharedServiceNetworkingConnection
for some cases, like https://github.com/GoogleCloudPlatform/magic-modules/blob/a007c7ce0f9498648bb61de3e9151b0639ed181b/mmv1/products/looker/Instance.yaml#L74C67-L74C67. That's why I have them combined in one.
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.
I think that's a coincidental overlap so far- merging these ones now will encourage merging all future examples too even if there isn't any overlap. With a settings object per bootstrap fn we'd define:
type AddressSettings struct {
PrefixLength int
}
type ServiceNetworkSettings struct {
PrefixLength int
ParentService string
}
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.
oh, yeah, that makes sense. I'll update it! Thanks!
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. Terraform GA: Diff ( 2 files changed, 34 insertions(+), 4 deletions(-)) |
Tests analyticsTotal tests:
|
…onnection
This will unblock the test in #9513
Release Note Template for Downstream PRs (will be copied)