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(rdsinstance.database): do not overwrite engineVersion if only major was set + add engineVersion to observe #2149

Conversation

wotolom
Copy link
Contributor

@wotolom wotolom commented Jan 22, 2025

Description of your changes

for RDSInstance.database:

  • remove lateinit overwrite of engineVersion when only major is set
    • this is no longer needed since we check in isUpToDate the engineVersion in detail (considering major and minor)
  • now fill - already existing status field... - with observed engineVersion in AWS
  • change printcolumn to .status.atProvider.engineVersion

Fixes:

for setups where MRs were applied automatically (e.g. via Composition/XR) the spec.forProvider.engineVersion would constantly flicker due to this lateinit part, when user set only the major version (which is valid by AWS; and makes sense in combination with autoMinorVersionUpgrade)

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

manually

…or was set + add engineVersion to observe

Signed-off-by: Charel Baum (external expert on behalf of DB InfraGO AG) <[email protected]>
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 @wotolom!

@MisterMX MisterMX merged commit cef8861 into crossplane-contrib:master Jan 23, 2025
8 of 9 checks passed
Copy link

Successfully created backport PR #2150 for release-0.51.

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.

2 participants