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): Updates will now set ResourceCredentialsSecretUserKey in ConnectionDetails if masterUsername is set #2000

Conversation

trystanleftwich
Copy link
Contributor

Description of your changes

in rdsInstance when running an update always set ResourceCredentialsSecretUserKey in the ConnectionDetails if masterUsername exists.

Fixes #1999

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

Created an RDSInstance, Deleted it when deletionPolicy = Orphan.
Re-added the RDSInstance, checked the secret contained username

@trystanleftwich trystanleftwich force-pushed the fix/rdsinstane-add-masterUsername-to-output-if-exists branch from 828fce1 to 2e35876 Compare February 14, 2024 01:01
@MisterMX
Copy link
Collaborator

@trystanleftwich can you rebase on the latest master to fix e2e tests?

@trystanleftwich trystanleftwich force-pushed the fix/rdsinstane-add-masterUsername-to-output-if-exists branch 2 times, most recently from 50b638f to 45d8acb Compare February 23, 2024 20:59
@trystanleftwich
Copy link
Contributor Author

@trystanleftwich can you rebase on the latest master to fix e2e tests?

@MisterMX I rebased but it didn't run the full suite it seems. Anyway to trigger a run?

@MisterMX
Copy link
Collaborator

@trystanleftwich can you try squashing your changes into a single commit?

…ey in ConnectionDetails if masterUsername is set

Signed-off-by: Trystan Leftwich <trystanleftwich@gmail.com>
@trystanleftwich trystanleftwich force-pushed the fix/rdsinstane-add-masterUsername-to-output-if-exists branch from 45d8acb to ef4c3af Compare February 29, 2024 09:10
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 @trystanleftwich!

@MisterMX MisterMX merged commit 63b23e4 into crossplane-contrib:master Mar 15, 2024
9 checks passed
Copy link

Successfully created backport PR #2011 for release-0.47.

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.

RDSInstance doesn't set username in writeConnectionSecretToRef if you are importing an existing resource
2 participants