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

feat(rds): Prevent update call for version downgrade #1765

Merged

Conversation

MisterMX
Copy link
Collaborator

Description of your changes

RDS downgrades are not allowed by AWS.

This prevents an upgrade call when the only the major version is defined or the spec version is lower the external version.

Downgrades are silently ignored. To detect an eventual misconfiguration the current engine version is added to the status.

This apply to the following resources:

  • rds.DBCluster
  • rds.DBInstance
  • database.RDSInstance

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

Unit tests

RDS downgrades are not allowed by AWS.

Downgrades are silently ignored. To detect an eventual misconfiguration
the current engine version is added to the status.

This apply to the following resources:
* `rds.DBCluster`
* `rds.DBInstance`
* `database.RDSInstance`

Signed-off-by: Maximilian Blatt (external expert on behalf of DB Netz) <maximilian.blatt-extern@deutschebahn.com>
@MisterMX MisterMX requested a review from haarchri May 24, 2023 16:15
Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

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

LGTM - tested locally is working thanks

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.

2 participants