-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cloudrun service fix 409 conflict due to not refreshing by default #2622
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. Maintainer note: consult the runbook for dealing with any breaking changes. |
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 sensible! Can you please add a test for this similar to
pulumi-gcp/provider/provider_yaml_test.go
Line 977 in c39bf95
func TestFirestoreBackupScheduleNoPermadiff(t *testing.T) { |
8e18093
to
6bb68cc
Compare
6bb68cc
to
bfc2819
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, thanks for adding the test!
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, thanks for adding the test!
I also edited the title and description of the PR, I hope you don't mind. It tends to be useful for future people trying to figure out why we've done these changes.
This PR has been shipped in release v8.9.2. |
This change fixes an issue with the
cloud_run_service
resource which causes a 409 conflict with the service whenever there is a change outside of pulumi. The conflict is caused by theresourceVersion
property in themetadata
blob, which is used for optimistic locking.This change adds a
TransformFromState
hook to the resource which deletes theresourceVersion
from the state. This disables the optimistic locking behaviour and prevents the 409 conflicts caused by changes to the resource.fixes #350