-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Enable service networking connections in GA #1906
Enable service networking connections in GA #1906
Conversation
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. |
f5f4c9d
to
87c5f30
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 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. |
87c5f30
to
3311bd2
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. |
3311bd2
to
f7c8d42
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. |
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.
Do tests pass right now? I'd expect them to fail. There's a few more steps due to custom endpoints.
The endpoint entry at
magic-modules/third_party/terraform/utils/provider_handwritten_endpoint.go.erb
Lines 223 to 232 in f7c8d42
var ServiceNetworkingDefaultBasePath = "https://servicenetworking.googleapis.com/v1beta/" | |
var ServiceNetworkingCustomEndpointEntryKey = "service_networking_custom_endpoint" | |
var ServiceNetworkingCustomEndpointEntry = &schema.Schema{ | |
Type: schema.TypeString, | |
Optional: true, | |
ValidateFunc: validateCustomEndpoint, | |
DefaultFunc: schema.MultiEnvDefaultFunc([]string{ | |
"GOOGLE_SERVICE_NETWORKING_CUSTOM_ENDPOINT", | |
}, ServiceNetworkingDefaultBasePath), | |
} |
config.ServiceNetworkingBasePath = d.Get(ServiceNetworkingCustomEndpointEntryKey).(string) |
provider.go
will also need to be updated to remove GA guards.
Additionally, the entries in
The default value and the position in the docs should also now be updated: https://github.com/GoogleCloudPlatform/magic-modules/blame/f7c8d42165c97f26eb77071f870ba4ce4ee15a01/third_party/terraform/website/docs/provider_reference.html.markdown#L264
f7c8d42
to
ff9fb98
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. |
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.
magic-modules/third_party/terraform/utils/provider.go.erb
Lines 108 to 113 in ff9fb98
<% unless version == 'ga' -%> | |
// start beta-only products | |
IAPCustomEndpointEntryKey: IAPCustomEndpointEntry, | |
ServiceNetworkingCustomEndpointEntryKey: ServiceNetworkingCustomEndpointEntry, | |
// end beta-only products | |
<% end -%> |
magic-modules/third_party/terraform/utils/provider.go.erb
Lines 403 to 406 in ff9fb98
<% unless version == 'ga' -%> | |
config.IAPBasePath = d.Get(IAPCustomEndpointEntryKey).(string) | |
config.ServiceNetworkingBasePath = d.Get(ServiceNetworkingCustomEndpointEntryKey).(string) | |
<% end -%> |
magic-modules/third_party/terraform/utils/provider.go.erb
Lines 467 to 472 in ff9fb98
<% unless version == 'ga' -%> | |
// start beta-only products | |
c.IAPBasePath = IAPDefaultBasePath | |
c.ServiceNetworkingBasePath = ServiceNetworkingDefaultBasePath | |
// end beta-only products | |
<% end -%> |
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. |
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
047fbbe
to
ea959f3
Compare
Fixes hashicorp/terraform-provider-google#3833