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

Fix(replicationgroup): Wrong engine version format #1985

Conversation

nilde
Copy link
Contributor

@nilde nilde commented Jan 13, 2024

Description of your changes

Fixes a bug related to the engine version when trying to update a ReplicationGroup. When creating a ReplicationGroup and attempting to update any property, an error is raised. This error is caused by an incorrect format in the engine version parameter sent to AWS.

Explanation:

When you create a new ReplicationGroup, you will do it with the following format:

Engine version: X.X

When the resource is created, the engineVersion will be updated to:

Engine version X.X.X

And if you try to update the generated resource, it will raise an error caused by the engine version format that is now defined in the resource.

This change enforces always updating with the desired engineVersion format X.X

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

managed_test.go updated in the PR to test the proposed change by attempting to update the resource with the wrong format and also tested against AWS.

@nilde nilde force-pushed the fix/replication-group-engine-version branch 7 times, most recently from 7404a2b to 4708afc Compare January 13, 2024 15:57
fix: engine version change on update

Signed-off-by: Domene Esteban, Nil <nildomenee@gmail.com>
@nilde nilde force-pushed the fix/replication-group-engine-version branch from 4708afc to 63d4e92 Compare January 13, 2024 15:59
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much @nilde!

@MisterMX MisterMX merged commit 23d7da1 into crossplane-contrib:master Jan 31, 2024
9 checks passed
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

2 participants