-
Notifications
You must be signed in to change notification settings - Fork 52
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
Upgrade terraform provider google beta to v6.0.1 major #2355
Upgrade terraform provider google beta to v6.0.1 major #2355
Conversation
Does the PR have any schema changes?Found 52 breaking changes: Resources
Types
New resources:
New functions:
Maintainer note: consult the runbook for dealing with any breaking changes. |
For the 0002 patch: #2319 (comment) I'm concerned that it's still an issue since the underlying bridge problem is not fixed - could we add a regression test with a partial state .get? |
8f3714f
to
92b0582
Compare
c6939a2
to
3382ff7
Compare
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.
Looks good to me. Only 2 nits:
- The comment about TransormFromState.
- The TODO still remaining.
Otherwise I think this is good to merge.
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.
Great! Can we add an upgrade test for the new state migration?
Also the change in TestOrganizationsProjectAutoNaming looks like it will leak resources.
Can we also separate the patch removals in a new PR? They don't look like they interact with the major version upgrade.
{"cloudrunv2-service-7"}, | ||
// TODO: This upgrade will no longer be possible, as it touches multiple new changes. Must be re-recorded. | ||
// Skipping for now. | ||
//{"cloudrunv2-service-7"}, |
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.
Are we re-recording it?
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.
I'll file a follow-up issue and link it here. 👍
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.
This is the only test which has a non-null value for the migrated parameter, we should fix it or write a new one to make sure that the migration works for users.
@VenelinMartinov - I believe the state transformation is already covered by the cloudrunv2-service-4 and cloudrunv2-service-5 upgrade tests - their failure is what made us aware of this breaking change. Their passing is proof the state migration works. |
Hm, neither cloudrunv2-service-4 or cloudrunv2-service-5 actually use the parameter - we should either fix service-7 which uses the ports parameter or write a new test which shows that the migration works for users. |
7f98067
to
50564c0
Compare
50564c0
to
f83416f
Compare
@VenelinMartinov - the state migration is specifically for a default port parameter, which is not visible in the code. We cannot "fix" service-7, because this is a breaking change due to MaxItemsOne. When |
Discussed offline and found @corymhall's code which tests exactly the case we need here: https://github.com/pulumi/pulumi-aws/blob/de5418dbd55dcc23ccc45e756b258bf4e12165da/provider/provider_yaml_test.go#L322 Upgrade test where the new program needs to change compared to the old one. |
2ae64aa
to
242aec1
Compare
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.
LGTM
Have we verified that the pulumi/examples repo passes with the new provider?
242aec1
to
c29bcdb
Compare
This PR has been shipped in release v8.0.0. |
Upgrades upstream provider to v6.0.1.
Resolves #2348.
Resolves #2357
- Adds a patch for renaming new default label to
goog-pului-provisioned
- Renames config field to
addPulumiAttributionLabel
- Adjusts labels tests to expect new label
- Adjusts bucket label patch to avoid writing this label to the Bucket resource itself.
Introduces additional breaking change via cloudrunv2.Service
ports
field, which is now a MaxItemsOne upstream, which turns it into an object on our end, rather than an array entry. Look for a state transformer on the resource for upgrades.Removes patches:
Remove 0002-Add-nil-checks-for-sql-database-instance-flattening.patch