Skip to content
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

gcs-data-bucket metadata key is now modifiable by the user #12505

Merged
merged 6 commits into from
Dec 17, 2024

Conversation

bcreddy-gcp
Copy link
Contributor

@bcreddy-gcp bcreddy-gcp commented Dec 5, 2024

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

workbench : Made `gcs-data-bucket` metadata key modifiable. 

@github-actions github-actions bot requested a review from roaks3 December 5, 2024 21:54
Copy link

github-actions bot commented Dec 5, 2024

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@roaks3, 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 deletion(-))
google-beta provider: Diff ( 1 file changed, 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 21
Passed tests: 21
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • workbench

🟢 All tests passed!

View the build log

Copy link

@roaks3 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link
Contributor

@roaks3 roaks3 left a comment

Choose a reason for hiding this comment

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

I can't quite tell if this is a breaking change, per https://googlecloudplatform.github.io/magic-modules/breaking-changes/breaking-changes/#field-level-breaking-changes. Do you know what happens if a user has this field specified right now, and then upgrades the provider? It seems like it could produce a new change that could be unexpected. Might be worth a test as well to demonstrate what happens.

@bcreddy-gcp
Copy link
Contributor Author

bcreddy-gcp commented Dec 16, 2024

This key was never allowed to be set by terraform nor was set by the backend. We now allow instances to have it set by Terraform update. Also newer instances can be created with the said key on Terraform.

@github-actions github-actions bot requested a review from roaks3 December 16, 2024 23:47
Copy link
Contributor

@roaks3 roaks3 left a comment

Choose a reason for hiding this comment

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

I was more considering if they had the key currently in their config, even though it is ignored:

    metadata = {
      gcs-data-bucket = "some-value"
    }

I believe someone could be using this config today, and then with this change, it would suddenly apply the "some-value".

But assuming that's correct, this does seem like fairly unusual usage, and I expect we would be fine including it in a minor version. I also see that there is precedent (we removed nvidia-driver-gcs-path in #10900).

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.

3 participants