Skip to content

fix: mark google_network_services_gateway name as immutable - #18641

Open
vr-ibm wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
vr-ibm:fix-gateway-name-immutable
Open

fix: mark google_network_services_gateway name as immutable#18641
vr-ibm wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
vr-ibm:fix-gateway-name-immutable

Conversation

@vr-ibm

@vr-ibm vr-ibm commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Fixes hashicorp/terraform-provider-google#27894

Marks name as immutable: true in Gateway.yaml so Terraform correctly plans a destroy+recreate when the gateway name changes. Previously, renaming the gateway showed as an in-place update, then 404'd on apply since the API resource URL is name-based and cannot be PATCHed.

Details

  • Adds immutable: true to the name parameter in mmv1/products/networkservices/Gateway.yaml
  • Generates ForceNew: true on the name field in google_network_services_gateway schema

Release Note Template for Downstream PRs (will be copied)

networkservices: fixed `google_network_services_gateway` to correctly plan destroy+recreate when `name` is changed

The name field is part of the API resource URL and cannot be
PATCHed in place. Adding immutable: true so Terraform correctly
plans a destroy+recreate when the name changes.

Fixes hashicorp/terraform-provider-google#27894
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests service/networkservices-traffic-director and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Aug 13, 2026
@modular-magician

modular-magician commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 7035f38:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 1 file changed, 1 insertion(+)
google-beta provider View Diff 1 file changed, 1 insertion(+)
terraform-google-conversion View Diff 1 file changed, 1 insertion(+)

Test report

Analytics

Total Tests Passed Skipped Affected
102 100 2 0
Affected Service Packages
  • networkservices

Learn how VCR tests work


Step 1: Replaying Mode

🟢 All tests passed in Replaying mode! No Recording was needed.

View the replaying VCR build log

@vr-ibm VCR tests complete for 7035f38!

@vr-ibm
vr-ibm marked this pull request as ready for review August 13, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google_network_services_gateway: renaming the gateway silently no-ops because name is not ForceNew

2 participants