-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Make ResourcePolicy updatable to avoid recreation of it. #11091
Make ResourcePolicy updatable to avoid recreation of it. #11091
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @trodge, 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. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_resource_policy" "primary" {
instance_schedule_policy {
expiration_time = # value needed
start_time = # value needed
}
snapshot_schedule_policy {
schedule {
weekly_schedule {
day_of_weeks {
day = # value needed
start_time = # value needed
}
}
}
}
}
|
Tests analyticsTotal tests: 966 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
e75740f
to
6868e66
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_resource_policy" "primary" {
instance_schedule_policy {
expiration_time = # value needed
start_time = # value needed
}
snapshot_schedule_policy {
schedule {
weekly_schedule {
day_of_weeks {
day = # value needed
start_time = # value needed
}
}
}
}
}
|
Tests analyticsTotal tests: 966 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
@trodge I believe the failed test is not related to my change, and I didn't add/modify any field for |
@trodge This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
@GoogleCloudPlatform/terraform-team @trodge This PR has been waiting for review for 1 week. Please take a look! Use the label |
The lack of PATCH method results in bugs such as orphaned snapshots when users use Terraform to edit snapshot schedules for disks, since Terraform will plan to delete and recreate a new one, which differs from what we have in our APIs.
Therefore, make ResourcePolicy updatable at resource level to fix that.
If this PR is for Terraform, I acknowledge that I have:
Release Note Template for Downstream PRs (will be copied)