Skip to content

Adds support for Filestore instance new feature: deletion protection. #11602

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

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

boarik
Copy link
Member

@boarik boarik commented Sep 1, 2024

Users will be able to enable deletion protection on their new or existing Filestore instances by providing an instance's deletion_protection_enabled boolean field and optionally also deletion_protection_reason string field specifying the reason for enabling the protection.

Fixes hashicorp/terraform-provider-google#19336

Release Note Template for Downstream PRs (will be copied)

filestore: added `deletion_protection_enabled` and `deletion_protection_reason` fields to `google_filestore_instance`

@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 ( 3 files changed, 161 insertions(+))
google-beta provider: Diff ( 3 files changed, 161 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 20 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • filestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFilestoreInstance_deletionProtection_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccFilestoreInstance_deletionProtection_update[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

@boarik
Copy link
Member Author

boarik commented Sep 4, 2024

The failed VCR-test is due to API rollout changes that are in progress (should be finished very soon) and due to experiments not yet being fully ramped up yet. I'd appreciate a review regardless to move things forward in the meantime.
Thanks

@boarik boarik marked this pull request as ready for review September 4, 2024 06:28
Copy link

github-actions bot commented Sep 4, 2024

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

@rileykarson, 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.

@github-actions github-actions bot requested a review from rileykarson September 4, 2024 06:28
@boarik
Copy link
Member Author

boarik commented Sep 5, 2024

@rileykarson The experiments + API rollout dependencies that caused the test failure should be now resolved. Can you assist re-running the checks to validate all works?

Copy link

github-actions bot commented Sep 6, 2024

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

@rileykarson
Copy link
Member

/gcbrun

1 similar comment
@rileykarson
Copy link
Member

/gcbrun

@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 ( 3 files changed, 161 insertions(+))
google-beta provider: Diff ( 3 files changed, 161 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 20 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • filestore

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccFilestoreInstance_deletionProtection_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccFilestoreInstance_deletionProtection_update[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$

View the build log or the debug log for each test

Copy link
Member

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

Mostly LGTM- one small test change to add an ImportState step after one of the Config steps.

I did want to flag that if we add a clientside deletion protection in the future we'll need to reconcile the fields [our thoughts on deletion_protection]. Given we don't have one I think this is still the right change to make anyways.

@github-actions github-actions bot requested a review from rileykarson September 8, 2024 07:35
Copy link
Member Author

@boarik boarik left a comment

Choose a reason for hiding this comment

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

@rileykarson back to you. Thanks

@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 ( 3 files changed, 167 insertions(+))
google-beta provider: Diff ( 3 files changed, 167 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 20 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 12
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • filestore

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

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.

Add delete protection to Filestore instance
3 participants