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

Suppress diffs on forced Redis version upgrades #873

Merged
merged 3 commits into from
Aug 31, 2022

Conversation

scotchneat
Copy link
Contributor

@scotchneat scotchneat commented Aug 30, 2022

To ensure customer Redis instances do not get destroyed and recreated after their Redis clusters are forced to upgrade, this change updates the DiffSuppressFunc logic for Database Cluster resources to suppress diffs when the DB engine is redis and version is newer on the remote resource than what is specified in the configuration.

This should also help us avoid having to make this change for forced upgrades in the future.

for APICLI-1526

@scotchneat scotchneat temporarily deployed to Acceptance Tests August 30, 2022 18:49 Inactive
@DMW2151
Copy link
Contributor

DMW2151 commented Aug 30, 2022

May want to generalize the test TestAccDigitalOceanDatabaseCluster_oldRedisVersion to accommodate all version changes.

@scotchneat scotchneat marked this pull request as draft August 30, 2022 19:28
@scotchneat
Copy link
Contributor Author

I switched this to a Draft PR so I can look into integrating a call to the databases_list_operations endpoint to ensure the acceptance tests can update dynamically.

Includes required update to godo dependency.
@scotchneat scotchneat temporarily deployed to Acceptance Tests August 31, 2022 16:52 Inactive
@scotchneat scotchneat marked this pull request as ready for review August 31, 2022 16:52
@scotchneat scotchneat temporarily deployed to Acceptance Tests August 31, 2022 16:54 Inactive
Copy link
Member

@danaelhe danaelhe left a comment

Choose a reason for hiding this comment

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

LGTM

@scotchneat scotchneat merged commit 1a2eb03 into main Aug 31, 2022
@scotchneat scotchneat deleted the cgarza/suppress-redis-version-upgrade-diffs branch August 31, 2022 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants