Skip to content

make network optional and empty if hub is present#18223

Open
amanMahendroo wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
amanMahendroo:main
Open

make network optional and empty if hub is present#18223
amanMahendroo wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
amanMahendroo:main

Conversation

@amanMahendroo

@amanMahendroo amanMahendroo commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

networkconnectivity: made `Transport.network` optional and passed empty string if `Transport.hub` is present (b/509697933)

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@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.

@modular-magician

modular-magician commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

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

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 2 files changed, 20 insertions(+), 13 deletions(-)
google-beta provider View Diff 2 files changed, 20 insertions(+), 13 deletions(-)

Test report

Analytics

Total Tests Passed Skipped Affected
41 40 1 0
Affected Service Packages
  • networkconnectivity

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

@amanMahendroo, @slevenick VCR tests complete for b7659bd!

@slevenick slevenick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do a local review with a Google engineer from the service team as described at go/terraform-service-review. Let me know when that's finished and I'll follow up with final review & merge.

@harshithpatte-g

Copy link
Copy Markdown
Contributor

@amanMahendroo

Copy link
Copy Markdown
Contributor Author

@harshithpatte-g b/509697933 seems to have specific instructions to send empty string when a hub is present. Using conflicting fields would send null value instead and disallow users to populate a network field. I believe we want to allow users to put in both hub and network fields but in this case network would be overridden by an empty string.

@github-actions github-actions Bot requested a review from slevenick July 10, 2026 11:12
@harshithpatte-g

Copy link
Copy Markdown
Contributor

@harshithpatte-g b/509697933 seems to have specific instructions to send empty string when a hub is present. Using conflicting fields would send null value instead and disallow users to populate a network field. I believe we want to allow users to put in both hub and network fields but in this case network would be overridden by an empty string.

In that case, the customer can set any random value to be network field.
I have added a comment on the bug.

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.

4 participants