Skip to content

Workbench: Make install-nvidia-driver a settable metadata key#16650

Merged
ScottSuarez merged 1 commit intoGoogleCloudPlatform:mainfrom
bcreddy-gcp:main
Mar 10, 2026
Merged

Workbench: Make install-nvidia-driver a settable metadata key#16650
ScottSuarez merged 1 commit intoGoogleCloudPlatform:mainfrom
bcreddy-gcp:main

Conversation

@bcreddy-gcp
Copy link
Contributor

@bcreddy-gcp bcreddy-gcp commented Mar 9, 2026

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

workbench: made `install-nvidia-driver` metadata key settable for `google_workbench_instance`

@github-actions github-actions bot requested a review from ScottSuarez March 9, 2026 23:45
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

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

@ScottSuarez, 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
Copy link
Collaborator

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

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))
google-beta provider: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))
terraform-google-conversion: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 27
Passed tests: 25
Skipped tests: 2
Affected tests: 0

Click here to see the affected service packages
  • workbench

🟢 All tests passed!

View the build log


var WorkbenchInstanceSettableUnmodifiableDefaultMetadata = []string{
"install-monitoring-agent",
"install-nvidia-driver",
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't this be a breaking change for existing users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why would it be? Previously this key was ignored. Now, it is not-ignored on creation and it is ignored any other time. For already existing resources, since it is ignored, it should be safe. lmk if I am missing something.

Choose a reason for hiding this comment

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

I don't know the particulars of implementation for this resource. I simply saw defaults changing which can be breaking in certain cases if they induce a diff on already created resources. Based on the exposition -- it is not, which makes sense and is allowed.

Copy link
Contributor

Choose a reason for hiding this comment

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

^^ account swap

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